Skip to content

Configure default value settings #2555

Answered by mdmintz
zh199609 asked this question in Q&A
Discussion options

You must be logged in to vote

You can pass a custom settings file to overwrite those values: examples/custom_settings.py.

Eg, with pytest tests:

pytest --settings=custom_settings.py

There's also an arg in the SB() format:

with SB(settings_file="custom_settings.py") as sb:

If you're using the Driver() format, set settings individually before launching the browser. Eg:

from seleniumbase import Driver
from seleniumbase.config import settings

settings.SMALL_TIMEOUT = 7
settings.LARGE_TIMEOUT = 10

driver = Driver()
# ...
driver.quit()

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mdmintz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants