TT#122872 selenium: fix customer status box missing

customer status box wasnt clicked properly sometimes, fixing that

Change-Id: Iabcc1983613b58e4898a3054b93ac6a6924d7160
mr10.0
Nico Schedel 4 years ago
parent f364d5f268
commit bda2429337

@ -474,7 +474,7 @@ class testrun(unittest.TestCase):
print("OK")
print("Try to edit customer status...", end="")
scroll_to_element(driver, '//*[@id="q-app"]/div//main//div//table/tbody/tr[1]/td[10]/span')
driver.find_element_by_xpath('//*[@id="q-app"]/div//main//div//table/tbody/tr[1]/td[10]/span').click()
click_js(driver, '//*[@id="q-app"]/div//main//div//table/tbody/tr[1]/td[10]/span')
driver.implicitly_wait(1)
if len(driver.find_elements_by_xpath('/html/body//div[@class="q-item__label"][contains(., "Locked")]')) == 0:
driver.find_element_by_xpath('/html/body/div[4]/label').click()

Loading…
Cancel
Save