I need help for selenium to wait for entire page load, when executing the test cases.

Wait time is to be defined in milliseconds for each step. It will be good if we have better way of doing it (like wait till page loading is complete). please give me some answers.


Something along the lines of the following code should give what you desire. Do this after instantiating your driver but before finding the elements (In the SetUp methods preferably).

driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);
  • hi paul need information more.beacuse already i used implicitlywait at elements level. but i want enter wait page load level. – NAVEEN May 3 '16 at 4:12
  • You just do this when initializing the driver to accomplish it throughout the instance of the driver. – Paul Muir May 3 '16 at 16:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.