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:
+1
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user