Update the behave/BDD integration

This commit is contained in:
Michael Mintz 2023-03-04 01:12:05 -05:00
parent 3a68a98f18
commit c03d1ec8ea
1 changed files with 4 additions and 0 deletions

View File

@ -823,6 +823,10 @@ def get_configured_sb(context):
sb.headless2 = True
if not sb.headless and not sb.headless2:
sb.headed = True
if sb.browser == "safari" and sb.headless:
sb.headless = False # Safari doesn't support headless mode
if sb.save_screenshot_after_test and sb.no_screenshot_after_test:
sb.save_screenshot_after_test = False # "no_screenshot" has priority
if sb.servername != "localhost":
# Using Selenium Grid
# (Set -D server="127.0.0.1" for localhost Grid)