From 6c8dd34ec1e58dc8c8ba6c2c72be58b32a6bcb94 Mon Sep 17 00:00:00 2001 From: Nico Schedel Date: Mon, 22 Feb 2021 11:08:58 +0100 Subject: [PATCH] TT#70901 selenium: fix some button ids fix four button ids which were no longer correct due to changes in master Change-Id: I38ee843e19f54600332739bb9251292173de8224 --- t/selenium/testrun.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/t/selenium/testrun.py b/t/selenium/testrun.py index 4df8a32f..8bfe575c 100644 --- a/t/selenium/testrun.py +++ b/t/selenium/testrun.py @@ -151,7 +151,7 @@ class testrun(unittest.TestCase): print("Create a call forwarding 'if available'...", end="") wait_for_invisibility(driver, '//*[@id="csc-page-call-forwarding"]/div[1]/button/span[3]/svg[@class="q-spinner text-primary"') time.sleep(1) - click_js(driver, '//*[@id="csc-page-call-forwarding"]/div[1]/button[contains(., "Add forwarding")]') + click_js(driver, '//*[@id="csc-page-call-forwarding"]//div//button[contains(., "Add forwarding")]') click_js(driver, '/html/body/div[3]/div/div[3]') print("OK") print("Try to add a condition 'call from...' to the call forwarding...", end="") @@ -376,15 +376,15 @@ class testrun(unittest.TestCase): self.assertTrue( len(driver.find_elements_by_xpath('//*[@id="csc-page-conversations"]//div[contains(., "No Calls, Voicemails or Faxes found")]')) > 0, "Sub page 'All' wasnt opened") - driver.find_element_by_xpath('//*[@id="csc-page-conversations"]/div[1]/div[1]/div/div/div[2]').click() + driver.find_element_by_xpath('//*[@id="csc-page-conversations"]//div[@role="tablist"]/div/div[2]').click() self.assertTrue( len(driver.find_elements_by_xpath('//*[@id="csc-page-conversations"]//div[contains(., "No Calls found")]')) > 0, "Sub page 'Calls' wasnt opened") - driver.find_element_by_xpath('//*[@id="csc-page-conversations"]/div[1]/div[1]/div/div/div[3]').click() + driver.find_element_by_xpath('//*[@id="csc-page-conversations"]//div[@role="tablist"]/div/div[3]').click() self.assertTrue( len(driver.find_elements_by_xpath('//*[@id="csc-page-conversations"]//div[contains(., "No Voicemails found")]')) > 0, "Sub page 'Voicemails' wasnt opened") - driver.find_element_by_xpath('//*[@id="csc-page-conversations"]/div[1]/div[1]/div/div/div[4]').click() + driver.find_element_by_xpath('//*[@id="csc-page-conversations"]//div[@role="tablist"]/div/div[4]').click() self.assertTrue( len(driver.find_elements_by_xpath('//*[@id="csc-page-conversations"]//div[contains(., "No Faxes found")]')) > 0, "Sub page 'Faxes' wasnt opened")