Skip to content

Commit

Permalink
Remove deprecated headless option for chrome and firefox.
Browse files Browse the repository at this point in the history
Deprecated in Version 4.8.0 of Selenium
Removed in version 4.13.0
  • Loading branch information
Kieran Trautwein committed Oct 15, 2023
1 parent a422600 commit 65e3c2a
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 @@ -161,7 +161,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 @@ -224,7 +224,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 @@ -244,7 +244,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 65e3c2a

Please sign in to comment.