With the current form of Selenium WebDriver does it understand page loads now?
In my recent research comparing WatiN vs Selenium vs X one of the biggest points I’ve seen in favor of WatiN was that it understands the concept of a page is loaded, whereas atleast on older versions of Selenium you had to fake this using waits/thread sleeps etc.
Is this now no longer a valid negative against Selenium?
Yes, many of the functions in Selenium WebDriver return only after the page has loaded. In other words, many of the old
-action-andwaitfunctions have just become-action-.Looking at the documentation can tell you exactly which functions block and which don’t wait for the page to load. For example, here is a snippet of the
clickfunction description: