Ever since updating to the Marionette driver. Firefox is no longer doing waits. Basically I want it to log in, wait for the page to load then check to see if its logged in by finding "log out" on the page. Here's my setup
// navigate to url "http://..."
// Find Log In button and .Click()
WebDriverWait wait = new WebDriverWait(driver, System.TimeSpan.FromSeconds(30));
wait.Until(driver1 => ((IJavaScriptExecutor)driver).ExecuteScript("return document.readyState").Equals("complete"));
// Assert if the page contains "Log out"
What's happening is after It Clicks Log In, it's not waiting for the page to load so it will throw an error because it can't find "Log out"
I stress that the code worked for the older Firefox driver (Not Marionette) and also Chrome's driver. Anyone else getting an issue with the new Firefox Driver not doing waits?
Sorry I should have been clearer, Firefox driver isn't doing ANY waits, so waiting on an element existing won't work either