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 badges
Add a ment  | 

1 Answer 1

Reset to default 4

WebDriver 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

本文标签: