From 98e07decc9b6e69ebbafe9ea4d211a89d2e0ebd7 Mon Sep 17 00:00:00 2001 From: Nico Schedel Date: Wed, 18 Dec 2019 12:25:05 +0100 Subject: [PATCH] TT#70901 selenium: fix for crash in call_blocking - fix crash where call_blocking test could not switch properly to outgoing and privacy options due to the fullscreen warning intercepting the click Change-Id: I5a046aa7d3c2f1235b25aaeea68fed7a61c398cc --- t/selenium/testrun.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/t/selenium/testrun.py b/t/selenium/testrun.py index ce4866b1..ef92d87a 100644 --- a/t/selenium/testrun.py +++ b/t/selenium/testrun.py @@ -138,13 +138,15 @@ class testrun(unittest.TestCase): '//*[@id="q-app"]//div[@class="csc-list-message"]' '[contains(text(), "No numbers found")]').is_displayed(), "Number has not been deleted") + WebDriverWait(driver, 10).until(EC.element_to_be_clickable(( + By.XPATH, '//*[@id="main-menu"]//div[@class="q-item-label"]' + '[contains(text(), "Outgoing")]'))) driver.find_element_by_xpath( '//*[@id="main-menu"]//div[@class="q-item-label"]' '[contains(text(), "Outgoing")]').click() WebDriverWait(driver, 10).until(EC.element_to_be_clickable(( By.XPATH, '//*[@id="q-app"]//div[@class="q-item-label"]' - '[contains(text(), "Only outgoing calls")]' - ))) + '[contains(text(), "Only outgoing calls")]'))) driver.find_element_by_xpath( '//*[@id="q-app"]//div[@class="q-item-label"]' '[contains(text(), "Only outgoing calls")]').click() @@ -181,6 +183,9 @@ class testrun(unittest.TestCase): '//*[@id="q-app"]//div[@class="csc-list-message"]' '[contains(text(), "No numbers found")]').is_displayed(), "Number has not been deleted") + WebDriverWait(driver, 10).until(EC.element_to_be_clickable(( + By.XPATH, '//*[@id="main-menu"]//div[@class="q-item-label"]' + '[contains(text(), "Privacy")]'))) driver.find_element_by_xpath( '//*[@id="main-menu"]//div[@class="q-item-label"]' '[contains(text(), "Privacy")]').click()