Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Hsu <kennethhsu@gmail.com>2021-01-10 04:49:02 +0300
committerKenneth Hsu <kennethhsu@gmail.com>2021-01-10 05:55:21 +0300
commit683ec18df244ee131ff8510a790b8d7a5fda2ef8 (patch)
treea55f9a4a986573c9dbf889b04d9fe21de2f96130 /guiTests
parentba345f0653829dda1d69f6fbbe4eecd60a6c9146 (diff)
Always maximize window in selenium tests.
There are random times when the input fields cannot be found, and this seems to help.
Diffstat (limited to 'guiTests')
-rw-r--r--guiTests/guiTest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/guiTests/guiTest.py b/guiTests/guiTest.py
index 3c9c8e2bd..237b68050 100644
--- a/guiTests/guiTest.py
+++ b/guiTests/guiTest.py
@@ -35,7 +35,6 @@ else:
options = Options()
options.set_headless(headless=True)
driver = webdriver.Firefox(profile, firefox_options=options)
- driver.maximize_window()
def write_random_file(size, filename):
@@ -90,6 +89,7 @@ DIRECT_RESTORE_FOLDER = os.path.abspath("duplicati_gui_test_direct_restore")
time.sleep(5)
driver.implicitly_wait(10)
+driver.maximize_window()
driver.get("http://localhost:8200/ngax/index.html")
if "Duplicati" not in driver.title: