Always maximize window in selenium tests.

There are random times when the input fields cannot be found, and this
seems to help.
This commit is contained in:
Kenneth Hsu
2021-01-09 18:55:21 -08:00
parent ba345f0653
commit 683ec18df2
+1 -1
View File
@@ -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: