-
How can I overwrite the default values in the settings. py file in the source code in the project |
Beta Was this translation helpful? Give feedback.
Answered by
mdmintz
Mar 1, 2024
Replies: 1 comment
-
You can pass a custom settings file to overwrite those values: examples/custom_settings.py. Eg, with pytest --settings=custom_settings.py There's also an arg in the with SB(settings_file="custom_settings.py") as sb: If you're using the from seleniumbase import Driver
from seleniumbase.config import settings
settings.SMALL_TIMEOUT = 7
settings.LARGE_TIMEOUT = 10
driver = Driver()
# ...
driver.quit() |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mdmintz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can pass a custom settings file to overwrite those values: examples/custom_settings.py.
Eg, with
pytest
tests:There's also an arg in the
SB()
format:If you're using the
Driver()
format, set settings individually before launching the browser. Eg: