Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
SamDudley committed Mar 27, 2024
1 parent a58238d commit 8c82853
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions features/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ def before_feature(context, feature):
if settings.USE_REMOTE_CHROME:
options = webdriver.ChromeOptions()
options.add_argument("--headless=new")
options.add_argument("--disable-dev-shm-usage")
context.browser = webdriver.Remote(
command_executor="http://{}:4444".format(settings.SELENIUM_ADDRESS),
options=options,
Expand All @@ -231,6 +232,7 @@ def before_feature(context, feature):
# NOTE: This has not been tested recently and might need changing to work.
options = webdriver.ChromeOptions()
options.add_argument("--headless=new")
options.add_argument("--disable-dev-shm-usage")
context.browser = webdriver.Chrome(options=options)

context.browser.implicitly_wait(5)
Expand Down

0 comments on commit 8c82853

Please sign in to comment.