TT#122872 selenium: fix domain settings button position

Domain preferences button has changed position, changing it here to
fix it

Change-Id: I7568d6a64a439ee4a454041d2dadcd73f1bd766e
mr10.2
Nico Schedel 4 years ago
parent e4cfb19a38
commit 1bb3f6c129

@ -736,7 +736,7 @@ class testrun(unittest.TestCase):
len(driver.find_elements_by_xpath('//*[@id="q-app"]/div//main/div//table/tbody/tr[1]/td[contains(., "' + domainname + '")]')) > 0, "Billing Profile was not found")
print("OK")
print("Try to open the domain preferences page...", end="")
driver.find_element_by_xpath('//*[@id="q-app"]/div//main//div//table/tbody/tr[1]/td[5]/button').click()
driver.find_element_by_xpath('//*[@id="q-app"]/div//main//div//table/tbody/tr[1]/td[4]/button').click()
WebDriverWait(driver, 10.).until(EC.element_to_be_clickable((By.XPATH, '/html/body//div/a[contains(., "Preferences")]')))
driver.find_element_by_xpath('/html/body//div/a[contains(., "Preferences")]').click()
wait_for_invisibility(driver, '//*[@id="q-app"]/div//main//div[@role="progressbar"]')
@ -791,8 +791,8 @@ class testrun(unittest.TestCase):
WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.XPATH, '/html/body//div/main//div/label//div/input')))
fill_element(driver, '/html/body//div/main//div/label//div/input', domainname)
wait_for_invisibility(driver, '//*[@id="q-app"]/div//main//div/table/thead/tr[2]/th/div[@role="progressbar"]')
WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.XPATH, '//*[@id="q-app"]//div/main//div/table/tbody/tr[1]/td[5]/button')))
driver.find_element_by_xpath('//*[@id="q-app"]//div/main//div/table/tbody/tr[1]/td[5]/button').click()
WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.XPATH, '//*[@id="q-app"]//div/main//div/table/tbody/tr[1]/td[4]/button')))
driver.find_element_by_xpath('//*[@id="q-app"]//div/main//div/table/tbody/tr[1]/td[4]/button').click()
WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.XPATH, '/html/body/div[4]/div/div')))
driver.find_element_by_xpath('/html/body/div[4]/div/div').click()
WebDriverWait(driver, 10).until(EC.visibility_of_element_located((By.XPATH, '/html/body/div[4]/div[2]/div/div[3]/button[2]')))

Loading…
Cancel
Save