Skip to content

Commit 349cae2

Browse files
authored
Merge pull request #1639 from seleniumbase/headless-and-env-settings
Headless and env settings
2 parents 2c668ed + 015cd0c commit 349cae2

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

seleniumbase/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# seleniumbase package
2-
__version__ = "4.9.10"
2+
__version__ = "4.9.11"

seleniumbase/core/browser_launcher.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2342,7 +2342,6 @@ def get_local_driver(
23422342
device_height,
23432343
device_pixel_ratio,
23442344
)
2345-
opera_options.headless = False # No support for headless Opera
23462345
warnings.simplefilter("ignore", category=DeprecationWarning)
23472346
return webdriver.Opera(options=opera_options)
23482347
except Exception:
@@ -2626,7 +2625,6 @@ def get_local_driver(
26262625
from urllib.error import URLError
26272626

26282627
if "linux" in PLATFORM:
2629-
chrome_options.headless = False # Use Xvfb
26302628
if "--headless" in (
26312629
chrome_options.arguments
26322630
):
@@ -2919,7 +2917,8 @@ def get_local_driver(
29192917
" headless mode. Attempting to use the"
29202918
" SeleniumBase virtual display on Linux..."
29212919
)
2922-
chrome_options.headless = False
2920+
if "--headless" in chrome_options.arguments:
2921+
chrome_options.arguments.remove("--headless")
29232922
return webdriver.Chrome(options=chrome_options)
29242923
except Exception:
29252924
try:

seleniumbase/plugins/base_plugin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ def options(self, parser, env):
6262
constants.Environment.BETA,
6363
constants.Environment.MAIN,
6464
constants.Environment.TEST,
65+
constants.Environment.UAT,
6566
),
6667
default=constants.Environment.TEST,
6768
help="""This option sets a test env from a list of choices.

seleniumbase/plugins/pytest_plugin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ def pytest_addoption(parser):
210210
constants.Environment.BETA,
211211
constants.Environment.MAIN,
212212
constants.Environment.TEST,
213+
constants.Environment.UAT,
213214
),
214215
default=constants.Environment.TEST,
215216
help="""This option sets a test env from a list of choices.

0 commit comments

Comments
 (0)