From 310e364a933f1b70819d60b1920776b534688ad6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Kn=C3=B6ppler?= <6317548+theCalcaholic@users.noreply.github.com> Date: Sat, 18 Oct 2025 11:48:51 +0200 Subject: [PATCH] activation_tests.py: Don't reuse service instance in webdriver initialization --- tests/activation_tests.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/activation_tests.py b/tests/activation_tests.py index 583dd06e..dde06f2d 100755 --- a/tests/activation_tests.py +++ b/tests/activation_tests.py @@ -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}")