admin管理员组文章数量:1403371
So I'm doing some tests one a page that changes it's html tree after clicking certain buttons and links. but the webdriver keeps searching only through the old html DOM.
So how can I target the newly added webelements? or how can I make the webdriver load the new Html DOM so that it target the new elements? thanks
So I'm doing some tests one a page that changes it's html tree after clicking certain buttons and links. but the webdriver keeps searching only through the old html DOM.
So how can I target the newly added webelements? or how can I make the webdriver load the new Html DOM so that it target the new elements? thanks
Share Improve this question asked Dec 13, 2015 at 13:06 roni1800roni1800 1172 silver badges11 bronze badges1 Answer
Reset to default 4WebDriver
does poll the DOM automatically.
Just use implicit or explicit wait before interaction with recently added web elements: http://www.seleniumhq/docs/04_webdriver_advanced.jsp#explicit-and-implicit-waits
本文标签:
版权声明:本文标题:javascript - how to reload the html DOM with selenium so that the new commands will locate the new nodes? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744311621a2600057.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论