WebDriver - sendKeys(input) does not complete before sendKeys(Keys.RETURN)

我们两清 提交于 2019-12-01 20:29:24

Try this, once you enter the input into the search box, check whether the text is completely present or not inside the text box again using if statement, if complete text is present, then do the sendkeys(keys.return) part.

Just give it a try. Because once you entered the text into text box, in the next step the element obviously will be there.

Thank you, Shravan Kumar.T

I also encountered same issue while executing my test. And it get resolved by updating webdriver to the latest version.

webdriver-manager update --versions.chrome=2.33
webdriver-manager start --versions.chrome=2.33
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!