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