Waiting for page load and element to (dis)appear #132
Unanswered
radoslavkarlik
asked this question in
Q&A
Replies: 1 comment
-
By default the webdriver will wait for the page to finish rendering, but that might not be the same as being fully loaded if some elements take a bit longer to show up. The best way to wait for the page to load is to query for an element using explicit waits. Example: let elem = driver.query(By::Css("div[data-section='section-buttons']")).first().await?; You can discard the element if you don't actually need it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, is it possible to wait for the page to finish loading?
Also what about waiting for elements to appear/disappear? I am not sure if I follow the docs properly but it seems like I can only poll for conditions on an element that was already found before.
Beta Was this translation helpful? Give feedback.
All reactions