I read information about method click of interface WebElement, but not clearly understand what mean such statement “If click() causes a new page to be loaded via an event or is done by sending a native event”?
I read information about method click of interface WebElement, but not clearly understand what
Share
Here is the full javadoc:
This means that click() is a blocking call if a new request in the browser is issued. And returns when the page is loaded.
click() is not a blocking call when it executes some javascript that loads the new page (or parts of it) (ajax). In this case you have to use WebDriverWait and wait for some css-classes / ids / text to appear.