1

when i'm using selenium rc i used waitForPageToLoad method but in WebDriver i'm unable to find method for wait. is there any way to achieve this? i know webDriver allows wait For page Load implicitly but it's not working for me. thanks in advance.

1
  • you should mark this question as answered :) Commented May 9, 2011 at 16:11

1 Answer 1

1

WebDriver shouldn't return until the page has loaded, but if this is not working for you e.g. your pages is using AJAX, then you could add your own wait code using wait.until from org.openqa.selenium.support.ui.WebDriverWait.

There's a full example at http://www.qaautomation.net/?p=263

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.