Skip to content

Commit

Permalink
Fix Headless Firefox in Selenium Tests
Browse files Browse the repository at this point in the history
With new versions of Selenium, the way headless mode is invoked has
changed:

- https://www.selenium.dev/blog/2023/headless-is-going-away/

This pull request fixes the Selenium code so that the tests continue
to work on our CI system.
  • Loading branch information
lkiesow committed Jan 3, 2024
1 parent 2bf1de7 commit 96686e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/requirements.txt
Expand Up @@ -3,4 +3,4 @@ coverage
coveralls
flake8
mock
selenium
selenium>=4.13.0
2 changes: 1 addition & 1 deletion .github/selenium-tests
Expand Up @@ -46,7 +46,7 @@ def check_pyca():
if __name__ == '__main__':
options = webdriver.FirefoxOptions()
if sys.argv[-1] != 'gui':
options.headless = True
options.add_argument('--headless')
driver = webdriver.Firefox(options=options)
check_pyca()
driver.close()

0 comments on commit 96686e1

Please sign in to comment.