tests/e2e: remove deprecated desired_capabilities

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-11-22 11:28:26 +01:00
parent eda260dddd
commit 4224134a19
1 changed files with 1 additions and 2 deletions

View File

@ -19,7 +19,6 @@ from docker.models.containers import Container
from selenium import webdriver from selenium import webdriver
from selenium.common.exceptions import NoSuchElementException, TimeoutException, WebDriverException from selenium.common.exceptions import NoSuchElementException, TimeoutException, WebDriverException
from selenium.webdriver.common.by import By 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.common.keys import Keys
from selenium.webdriver.remote.webdriver import WebDriver from selenium.webdriver.remote.webdriver import WebDriver
from selenium.webdriver.remote.webelement import WebElement from selenium.webdriver.remote.webelement import WebElement
@ -111,7 +110,7 @@ class SeleniumTestCase(StaticLiveServerTestCase):
try: try:
return webdriver.Remote( return webdriver.Remote(
command_executor="http://localhost:4444/wd/hub", command_executor="http://localhost:4444/wd/hub",
desired_capabilities=DesiredCapabilities.CHROME, options=webdriver.ChromeOptions(),
) )
except WebDriverException: except WebDriverException:
count += 1 count += 1