TT#70901 selenium: fix a wait condition in call_forward_always

- wait for the loading screen to go away instead of waiting until the button
is clickable. should work better

Change-Id: If9d0d33fad0c543db5883af439ae87a53d681723
changes/30/36830/1
Nico Schedel 5 years ago
parent e3ff694d19
commit 033dae67cd

@ -280,9 +280,12 @@ class testrun(unittest.TestCase):
driver.find_element_by_xpath(
'//*[@id="main-menu"]//div[@class="q-item-label"]'
'[contains(text(), "Always")]').click()
WebDriverWait(driver, 10).until(EC.element_to_be_clickable((
By.XPATH, '//*[@id="q-app"]//div[1]/div'
'[@class="add-destination-form"]/button')))
driver.implicitly_wait(2)
WebDriverWait(driver, 10).until(EC.invisibility_of_element_located((
By.XPATH, '//div[@class="q-loading animate-fade fullscreen column '
'flex-center z-maxundefined"]/svg[@class="q-spinner q-spinner-mat '
'text-white"]')))
driver.implicitly_wait(10)
driver.find_element_by_xpath(
'//*[@id="q-app"]//div[1]/div[@class="add-destination-form"]'
'/button').click()

Loading…
Cancel
Save