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

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -