From 7e42c963d0489a6c498817063735675ea8bb4237 Mon Sep 17 00:00:00 2001 From: Nico Schedel Date: Wed, 31 Aug 2022 10:41:37 +0200 Subject: [PATCH] TT#70901 fix voicebox test Change-Id: I7a19416cd61f8bb19c5c00a1ca38b3fc03b64268 --- t/selenium/testrun.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/selenium/testrun.py b/t/selenium/testrun.py index 4f361ed8..c8176fa8 100644 --- a/t/selenium/testrun.py +++ b/t/selenium/testrun.py @@ -799,10 +799,10 @@ class testrun(unittest.TestCase): "Changed Email is not correct") print("OK") print("Try to disable 'Attach voicemail to email' setting...", end="") - driver.find_element_by_xpath('//*[@id="csc-page-voicebox"]/div/div[3]/div[1]/div/div[1]').click() + driver.find_element_by_xpath('//*[@id="csc-page-voicebox"]//div[@aria-label="Attach voicemail to email notification"]').click() wait_for_invisibility(driver, '//*[@id="csc-page-voicebox"]/div/div[3]/div[2]/svg') self.assertTrue( - len(driver.find_elements_by_xpath('//*[@id="csc-page-voicebox"]/div/div[4]/div[1]/div[@aria-disabled="true"]')) > 0, + len(driver.find_elements_by_xpath('//*[@id="csc-page-voicebox"]/div/div[5]/div[1]/div[@aria-disabled="true"]')) > 0, "Setting was not disabled") filename = 0