From 4224134a196a2db01962fe945849da53d5b8043b Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 22 Nov 2021 11:28:26 +0100 Subject: [PATCH] tests/e2e: remove deprecated desired_capabilities Signed-off-by: Jens Langhammer --- tests/e2e/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/e2e/utils.py b/tests/e2e/utils.py index 7535c3ed5..05dc66ac2 100644 --- a/tests/e2e/utils.py +++ b/tests/e2e/utils.py @@ -19,7 +19,6 @@ from docker.models.containers import Container from selenium import webdriver from selenium.common.exceptions import NoSuchElementException, TimeoutException, WebDriverException from selenium.webdriver.common.by import By -from selenium.webdriver.common.desired_capabilities import DesiredCapabilities from selenium.webdriver.common.keys import Keys from selenium.webdriver.remote.webdriver import WebDriver from selenium.webdriver.remote.webelement import WebElement @@ -111,7 +110,7 @@ class SeleniumTestCase(StaticLiveServerTestCase): try: return webdriver.Remote( command_executor="http://localhost:4444/wd/hub", - desired_capabilities=DesiredCapabilities.CHROME, + options=webdriver.ChromeOptions(), ) except WebDriverException: count += 1