Skip to content

Commit

Permalink
Merge pull request #1858 from trauty-is-me/fix_headless_args
Browse files Browse the repository at this point in the history
Remove deprecated headless option for chrome and firefox.
  • Loading branch information
emanlove authored Nov 1, 2023
2 parents e3ed7a1 + 87693af commit b7ea7c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/SeleniumLibrary/keywords/webdrivertools/webdrivertools.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def create_headless_chrome(
):
if not options:
options = webdriver.ChromeOptions()
options.headless = True
options.add_argument('--headless=new')
return self.create_chrome(
desired_capabilities, remote_url, options, service_log_path, executable_path
)
Expand Down Expand Up @@ -232,7 +232,7 @@ def _get_ff_profile(self, ff_profile_dir):
else:
setattr(ff_profile, key, *option[key])
return ff_profile

@property
def _geckodriver_log(self):
log_file = self._get_log_path(
Expand All @@ -252,7 +252,7 @@ def create_headless_firefox(
):
if not options:
options = webdriver.FirefoxOptions()
options.headless = True
options.add_argument('-headless')
return self.create_firefox(
desired_capabilities,
remote_url,
Expand Down

0 comments on commit b7ea7c1

Please sign in to comment.