javascript - Eclipse java Press enter key after giving input -
i writing input in text box using following code:
driver.findelement(by.xpath("//*[@id=\"tocgotoinputbox\"]")).sendkeys(s);
after have press enter key , using following code:
driver.findelement(by.xpath("//*[@id=\"tocgotoinputbox\"]")).click();
but not working. there other way press enter key after giving input in text box?
Comments
Post a Comment