Skip to content

Commit c03d1ec

Browse files
committed
Update the behave/BDD integration
1 parent 3a68a98 commit c03d1ec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

seleniumbase/behave/behave_sb.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -823,6 +823,10 @@ def get_configured_sb(context):
823823
sb.headless2 = True
824824
if not sb.headless and not sb.headless2:
825825
sb.headed = True
826+
if sb.browser == "safari" and sb.headless:
827+
sb.headless = False # Safari doesn't support headless mode
828+
if sb.save_screenshot_after_test and sb.no_screenshot_after_test:
829+
sb.save_screenshot_after_test = False # "no_screenshot" has priority
826830
if sb.servername != "localhost":
827831
# Using Selenium Grid
828832
# (Set -D server="127.0.0.1" for localhost Grid)

0 commit comments

Comments
 (0)