tests/e2e: remove deprecated desired_capabilities
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
eda260dddd
commit
4224134a19
|
@ -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
|
||||
|
|
Reference in a new issue