Skip to content

Commit ae80807

Browse files
committed
Update the custom_settings parser
1 parent b33b30d commit ae80807

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

examples/custom_settings.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
ARCHIVE_EXISTING_LOGS = False
1414
ARCHIVE_EXISTING_DOWNLOADS = False
1515

16+
# If True, switch to new tabs automatically if a click opens a new one.
17+
# (Only happens if the initial tab is still on same URL as before.)
18+
SWITCH_TO_NEW_TABS_ON_CLICK = True
19+
1620
# Waiting for Document.readyState to be "Complete" after browser actions.
1721
WAIT_FOR_RSC_ON_PAGE_LOADS = True
1822
WAIT_FOR_RSC_ON_CLICKS = True

seleniumbase/core/settings_parser.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ def set_settings(settings_file):
8989
settings.HTML_REPORT = override_settings[key]
9090
elif key == "RESULTS_TABLE":
9191
settings.RESULTS_TABLE = override_settings[key]
92+
elif key == "SWITCH_TO_NEW_TABS_ON_CLICK":
93+
settings.SWITCH_TO_NEW_TABS_ON_CLICK = override_settings[key]
9294
elif key == "WAIT_FOR_RSC_ON_PAGE_LOADS":
9395
settings.WAIT_FOR_RSC_ON_PAGE_LOADS = override_settings[key]
9496
elif key == "WAIT_FOR_RSC_ON_CLICKS":

0 commit comments

Comments
 (0)