You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If not set explicitly in the configuration, the default value of 0 is used which leads to a script timeout.
Instead we should it at -1 in the default config so that it is visible for illustration purposes and modify the code so that it is only set if the value is >=0. This would in effect mean: rely on Selenium's default unless specified otherwise, which feels a lot cleaner. It also adds an additional safety as negative values are not accepted.
We will also change the config to use a map, feels a bit cleaner conceptually
# rely on selenium's default values
# set to a value >= 0 to override
selenium.timeouts:
script: -1
pageLoad: -1
implicit: -1
The text was updated successfully, but these errors were encountered:
The configuration of the timeouts is quite error prone.
The default values are set to 0
If not set explicitly in the configuration, the default value of 0 is used which leads to a script timeout.
Instead we should it at -1 in the default config so that it is visible for illustration purposes and modify the code so that it is only set if the value is >=0. This would in effect mean: rely on Selenium's default unless specified otherwise, which feels a lot cleaner. It also adds an additional safety as negative values are not accepted.
We will also change the config to use a map, feels a bit cleaner conceptually
The text was updated successfully, but these errors were encountered: