Skip to content

Commit

Permalink
tests/nextcloud_tests.py: Fix deprecated syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
theCalcaholic committed Jul 14, 2023
1 parent 534ae4f commit 0443ddc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions tests/nextcloud_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@
import signal
import re
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.service import Service
from selenium.webdriver.firefox.webdriver import WebDriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.firefox.options import Options
Expand Down Expand Up @@ -233,7 +230,7 @@ def test_nextcloud(IP: str, nc_port: str, driver: WebDriver):
print("Nextcloud tests " + tc.yellow + IP + tc.normal)
print("---------------------------")

driver = webdriver.Firefox(service_log_path='/dev/null', options=options)
driver = webdriver.Firefox(options=options)
try:
test_nextcloud(IP, nc_port, driver)
except Exception as e:
Expand Down
4 changes: 2 additions & 2 deletions tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
selenium~=4.7
robotframework~=6.0
selenium
robotframework

0 comments on commit 0443ddc

Please sign in to comment.