|
|
|
@ -215,11 +215,11 @@ class testrun(unittest.TestCase):
|
|
|
|
|
if day < 10:
|
|
|
|
|
day = "0" + str(day)
|
|
|
|
|
self.assertTrue(
|
|
|
|
|
len(driver.find_elements_by_xpath('//*[@id="csc-wrapper-call-forwarding"]//div/span[2][contains(., "' + datetime.today().strftime('%Y/%m/') + day + '")]')) > 0,
|
|
|
|
|
len(driver.find_elements_by_xpath('//*[@id="csc-wrapper-call-forwarding"]//div/span[2][contains(., "' + datetime.today().strftime('%Y/%m/') + str(day) + '")]')) > 0,
|
|
|
|
|
"'Office hours are...' condition is not correct")
|
|
|
|
|
print("OK")
|
|
|
|
|
print("Try to delete second condition...", end="")
|
|
|
|
|
driver.find_element_by_xpath('//*[@id="csc-wrapper-call-forwarding"]//div/span[contains(., "' + datetime.today().strftime('%Y/%m/') + day + '")]').click()
|
|
|
|
|
driver.find_element_by_xpath('//*[@id="csc-wrapper-call-forwarding"]//div/span[contains(., "' + datetime.today().strftime('%Y/%m/') + str(day) + '")]').click()
|
|
|
|
|
driver.find_element_by_xpath('/html/body//div//button[contains(., "Delete")]').click()
|
|
|
|
|
wait_for_invisibility(driver, '//*[@id="csc-wrapper-call-forwarding"]/div/div[2]/div[4]/svg')
|
|
|
|
|
self.assertTrue(
|
|
|
|
|