0

I have some pages which take more than 60s to load so what I want to achieve is to wait for 60s, once the 60s is done close the loading using execute_script("window.stop") or suggest some better way if you have any.

PS - please don't suggest driver.set_page_load_timeout(120) It is not what I am looking for.

Thanks in Advance

2
  • you are looking for implicity_wait Commented May 27, 2022 at 8:20
  • Hi, have a look at implicait and explicit wait commands. This will be what you are looking for. Please see this answer: stackoverflow.com/questions/25850842/… Commented May 27, 2022 at 12:17

1 Answer 1

0

wait for certain amount of time

sleep function is provided for such purposes in time module (part of standard library), it accepts value in seconds, so to wait 60 second just do:

import time
time.sleep(60)
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.