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

Popular posts from this blog

google app engine - 403 Forbidden POST - Flask WTForms -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -

how to run a query SQL in node.js mysql -