mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
nixos/tests/vaultwarden: fix aarch64-linux compat
Selenium Manager is just very stupid, so bypass it by looking up geckodriver ourselves.
This commit is contained in:
@@ -32,10 +32,11 @@ let
|
||||
}
|
||||
# python
|
||||
''
|
||||
|
||||
import shutil
|
||||
from selenium.webdriver.common.by import By
|
||||
from selenium.webdriver import Firefox
|
||||
from selenium.webdriver.firefox.options import Options
|
||||
from selenium.webdriver.firefox.service import Service
|
||||
from selenium.webdriver.support.ui import WebDriverWait
|
||||
from selenium.webdriver.support import expected_conditions as EC
|
||||
from selenium.common.exceptions import ElementClickInterceptedException
|
||||
@@ -50,9 +51,11 @@ let
|
||||
continue
|
||||
|
||||
|
||||
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('https://localhost/#/signup')
|
||||
|
||||
Reference in New Issue
Block a user