mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
nixos/tests/nginx-etag: fix aarch64-linux compat
Selenium manager is too dumb to find geckodriver on aarch64-linux by itself.
This commit is contained in:
@@ -53,14 +53,18 @@
|
||||
}
|
||||
''
|
||||
import os
|
||||
import shutil
|
||||
import time
|
||||
|
||||
from selenium.webdriver import Firefox
|
||||
from selenium.webdriver.firefox.options import Options
|
||||
from selenium.webdriver.firefox.service import Service
|
||||
|
||||
service = Service(shutil.which("geckodriver"))
|
||||
|
||||
options = Options()
|
||||
options.add_argument('--headless')
|
||||
driver = Firefox(options=options)
|
||||
driver = Firefox(options=options, service=service)
|
||||
|
||||
driver.implicitly_wait(20)
|
||||
driver.get('http://server/')
|
||||
|
||||
Reference in New Issue
Block a user