Timeout Settings#
TimeoutSettings
#
Class to configure timeout settings and strategy as used in BrowserSettings
.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
strategy | TimeoutStrategy | If a function times out, should the browser continue or stop? Default is stop. | STOP |
seconds | float | General timeout in seconds to be applied for each function (note that a function-specific timeout overrides this). | 5 |
idle_download_seconds | float | General timeout in seconds to be applied for downloads to determine when a file download is idle. | 3 |
Example
How to set the timeout strategy and timeout:
TimeoutStrategy
#
Define timeout strategy as used in TimeoutSettings
.
Attributes:
Name | Type | Description |
---|---|---|
TimeoutStrategy.STOP | Enum | If a function times out, stop operation. |
TimeoutStrategy.CONTINUE | Enum | If a function times out, continue operation. |
Example
How to set a different timeout strategy than the default STOP
: