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:
Martin Weinelt
2026-05-14 00:04:30 +02:00
parent 60125b3add
commit 47c5dd575b

View File

@@ -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/')