Skip to content

Commit ac6d0fd

Browse files
committed
Fix "behave" issue that can occur during "--headless" mode
1 parent f1a3e6f commit ac6d0fd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

seleniumbase/behave/behave_sb.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ def get_configured_sb(context):
128128
sb.browser = "chrome"
129129
sb.is_behave = True
130130
sb.headless = False
131+
sb.headless_active = False
131132
sb.headed = False
132133
sb.xvfb = False
133134
sb.start_page = None
@@ -758,6 +759,7 @@ def get_configured_sb(context):
758759
# Set sb_config
759760
sb_config.browser = sb.browser
760761
sb_config.headless = sb.headless
762+
sb_config.headless_active = False
761763
sb_config.headed = sb.headed
762764
sb_config.window_size = sb.window_size
763765
sb_config.maximize_option = sb.maximize_option

0 commit comments

Comments
 (0)