Eric
Eric

Reputation: 6345

Selenium waitForPageToLoad end condition

I have a java selenium script where I am making a call to com.thoughtworks.selenium.DefaultSelenium.waitForPageToLoad(String). Which condition in the browser is selenium waiting for that will tell it that the page is done loading?

Upvotes: 0

Views: 470

Answers (1)

Mike Bockus
Mike Bockus

Reputation: 2079

Selenium is waiting for a pageLoad event to be fired by the browser. If you look in the source for selenium, I think the logic for waitForPageToLoad can be found in selenium-browserbot.js.

Upvotes: 1

Related Questions