c# - Does finding element confirm page being fully loaded? -
in reference answer: https://stackoverflow.com/a/7811812/3146582
does waiting random page element being found by
_wait.until(d => d.findelement(by.id("id_your_uielement"));
really confirms page loaded?
as loaded assume:
- all required , designed elements displayed
- browser not downloading more data page
option 1:
driver.manage().timeouts().implicitlywait(timespan.fromseconds(120));
option 2:
webdriverwait wait; wait = new webdriverwait(driver, timespan.fromseconds(60)); wait.until(driver1 => ((ijavascriptexecutor)driver).executescript("return document.readystate").equals("complete"));
Comments
Post a Comment