7

There are three kinds of timeout functions for Java in Wedriver.Timeouts:

  1. implcitlyWait
  2. pageLoadTimeout
  3. setScriptTimeout

I'm trying to look up the python equivalent of the third, but am not able to find it. The following are the python equivalents of the first two.

  1. implicitly_wait(10)
  2. set_page_load_timeout(20)

1 Answer 1

11

Is this what you are looking for :

set_script_timeout(time_to_wait)

    Set the amount of time that the script should wait during an
        execute_async_script call before throwing an error.

    Args :  

        time_to_wait: The amount of time to wait (in seconds)

    Usage : 

    driver.set_script_timeout(30)

Ref - set_script_timeout

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.