activation_tests.py: Don't reuse service instance in webdriver initialization

This commit is contained in:
Tobias Knöppler 2025-10-18 11:48:51 +02:00
parent 90fd93e888
commit 310e364a93

View File

@ -141,7 +141,9 @@ def test_activation(IP, nc_port, admin_port, options, webdriver_exec_path=None,
# ncp-web
test.new("ncp-web")
# driver = webdriver.Firefox(options=options, **driver_kwargs)
if webdriver_exec_path is not None:
driver_kwargs['service'] = Service(webdriver_exec_path)
driver = webdriver.Firefox(options=options, **driver_kwargs)
driver.implicitly_wait(30)
try:
driver.get(f"https://ncp:{urllib.parse.quote_plus(ncp_pass)}@{IP}:{admin_port}")