From 683ec18df244ee131ff8510a790b8d7a5fda2ef8 Mon Sep 17 00:00:00 2001 From: Kenneth Hsu Date: Sat, 9 Jan 2021 17:49:02 -0800 Subject: [PATCH] Always maximize window in selenium tests. There are random times when the input fields cannot be found, and this seems to help. --- guiTests/guiTest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: