I don't think that there is a way to read the FireFox Status bar using WebDriver.
When you do webdriver.get()
, it will wait until the “onload” event has fired before returning control to your test or script. However, that might not be good enough if your page uses a lot of AJAX to load content on your page and the "onload" event fires while stuff is still showing up in the browser.
If you need to ensure such pages are fully loaded then the solution is to use “waits”.
You can wait for a particular element:
Wait<WebDriver> wait = new WebDriverWait(driver, 10);
wait.until(visibilityOfElementLocated(By.id("target")));
see: http://seleniumexamples.com/blog/examples/selenium-2-examples/
Or try to wait for Ajax to complete any pending requests:
see: http://blog.activelylazy.co.uk/2010/05/05/testing-asynchronous-applications-with-webdriver/