selenium.webdriver.common.timeouts

Classes

Timeouts([implicit_wait, page_load, script])

Create a new Timeout object.

class selenium.webdriver.common.timeouts.Timeouts(implicit_wait: float = 0, page_load: float = 0, script: float = 0)[source]

Create a new Timeout object.

Args:
  • implicit_wait - Either an int or a float. The number passed in needs to how many

    seconds the driver will wait.

  • page_load - Either an int or a float. The number passed in needs to how many

    seconds the driver will wait.

  • script - Either an int or a float. The number passed in needs to how many

    seconds the driver will wait.

implicit_wait

Sets and Gets the value of the implicit_timeout:

This does not set the value on the remote end.

Usage

  • Get
    • self.implicit_timeout

  • Set
    • self.implicit_timeout = value

Parameters

value: float

page_load

Sets and Gets the value of page load wait:

This does not set the value on the remote end.

Usage

  • Get
    • self.page_load

  • Set
    • self.page_load = value

Parameters

value: float

script

Sets and Gets the value of script wait:

This does not set the value on the remote end.

Usage

  • Get
    • self.script

  • Set
    • self.script = value

Parameters

value: float