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
WebDriver
does poll the DOM automatically.
Just use implicit or explicit wait before interaction with recently added web elements: http://www.seleniumhq.org/docs/04_webdriver_advanced.jsp#explicit-and-implicit-waits
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With