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

visual studio - vb.net filter binding source by time -

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -