@ -542,8 +542,11 @@ class testrun(unittest.TestCase):
print ( " OK " )
print ( " Try to edit contract status... " , end = " " )
driver . find_element_by_xpath ( ' //*[@id= " q-app " ]/div//main//div//table/tbody/tr[1]/td[7]/span ' ) . click ( )
wait_for_invisibility ( driver , ' /html/body//div[@class= " q-transition--fade-enter q-transition--fade-enter-active " ] ' )
click_js ( driver , ' /html/body//div//label//div/span[contains(., " Active " )] ' )
WebDriverWait ( driver , 10 ) . until ( EC . element_to_be_clickable ( ( By . XPATH , ' /html/body//div[@class= " q-item__label " ][contains(., " Locked " )] ' ) ) )
driver . find_element_by_xpath ( ' /html/body//div[@class= " q-item__label " ][contains(., " Locked " )] ' ) . click ( )
wait_for_invisibility ( driver , ' /html/body//div[@class= " q-virtual-scroll__content " ] ' )
wait_for_invisibility ( driver , ' /html/body/ div[@role=" listbox " ] ' )
driver . find_element_by_xpath ( ' /html/body//div/button[contains(., " Save " )] ' ) . click ( )
self . assertTrue (
len ( driver . find_elements_by_xpath ( ' //*[@id= " q-app " ]/div//main//div//table/tbody/tr[1]/td[7]/span[contains(., " Locked " )] ' ) ) > 0 , " Subscriber status was not edited " )
@ -589,8 +592,11 @@ class testrun(unittest.TestCase):
print ( " OK " )
print ( " Try to edit contract status... " , end = " " )
driver . find_element_by_xpath ( ' //*[@id= " q-app " ]/div//main//div//table/tbody/tr[1]/td[7]/span ' ) . click ( )
wait_for_invisibility ( driver , ' /html/body//div[@class= " q-transition--fade-enter q-transition--fade-enter-active " ] ' )
click_js ( driver , ' /html/body//div//label//div/span[contains(., " Active " )] ' )
WebDriverWait ( driver , 10 ) . until ( EC . element_to_be_clickable ( ( By . XPATH , ' /html/body//div[@class= " q-item__label " ][contains(., " Locked " )] ' ) ) )
driver . find_element_by_xpath ( ' /html/body//div[@class= " q-item__label " ][contains(., " Locked " )] ' ) . click ( )
wait_for_invisibility ( driver , ' /html/body//div[@class= " q-virtual-scroll__content " ] ' )
wait_for_invisibility ( driver , ' /html/body/ div[@role=" listbox " ] ' )
driver . find_element_by_xpath ( ' /html/body//div/button[contains(., " Save " )] ' ) . click ( )
self . assertTrue (
len ( driver . find_elements_by_xpath ( ' //*[@id= " q-app " ]/div//main//div//table/tbody/tr[1]/td[7]/span[contains(., " Locked " )] ' ) ) > 0 , " Subscriber status was not edited " )
@ -648,9 +654,11 @@ class testrun(unittest.TestCase):
scroll_to_element ( driver , ' //*[@id= " q-app " ]/div//main//div//table/tbody/tr[1]/td[10]/span ' )
time . sleep ( 1 )
click_js ( driver , ' //*[@id= " q-app " ]/div//main//div//table/tbody/tr[1]/td[10]/span ' )
wait_for_invisibility ( driver , ' /html/body//div[@class= " q-transition--fade-enter q-transition--fade-enter-active " ] ' )
click_js ( driver , ' /html/body//div//label//div/span[contains(., " Active " )] ' )
WebDriverWait ( driver , 10 ) . until ( EC . element_to_be_clickable ( ( By . XPATH , ' /html/body//div[@class= " q-item__label " ][contains(., " Locked " )] ' ) ) )
driver . find_element_by_xpath ( ' /html/body//div[@class= " q-item__label " ][contains(., " Locked " )] ' ) . click ( )
wait_for_invisibility ( driver , ' /html/body/ /div[@class=" q-virtual-scroll__content " ] ' )
wait_for_invisibility ( driver , ' /html/body/ div[@role=" listbox " ] ' )
click_js ( driver , ' /html/body//div/button[contains(., " Save " )] ' )
self . assertTrue (
len ( driver . find_elements_by_xpath ( ' //*[@id= " q-app " ]/div//main//div//table/tbody/tr[1]/td[10]/span[contains(., " Locked " )] ' ) ) > 0 , " Subscriber status was not edited " )
@ -997,8 +1005,11 @@ class testrun(unittest.TestCase):
print ( " OK " )
print ( " Try to edit reseller status... " , end = " " )
driver . find_element_by_xpath ( ' //*[@id= " q-app " ]/div//main//div//table/tbody/tr[1]/td[5]/span ' ) . click ( )
driver . find_element_by_xpath ( ' /html/body//div[contains(., " Locked " )] ' ) . click ( )
wait_for_invisibility ( driver , ' /html/body//div[@class= " q-virtual-scroll__content " ] ' )
wait_for_invisibility ( driver , ' /html/body//div[@class= " q-transition--fade-enter q-transition--fade-enter-active " ] ' )
click_js ( driver , ' /html/body//div//label//div/span[contains(., " Active " )] ' )
WebDriverWait ( driver , 10 ) . until ( EC . element_to_be_clickable ( ( By . XPATH , ' /html/body//div[@class= " q-item__label " ][contains(., " Locked " )] ' ) ) )
driver . find_element_by_xpath ( ' /html/body//div[@class= " q-item__label " ][contains(., " Locked " )] ' ) . click ( )
wait_for_invisibility ( driver , ' /html/body/div[@role= " listbox " ] ' )
driver . find_element_by_xpath ( ' /html/body//div/button[contains(., " Save " )] ' ) . click ( )
self . assertTrue (
len ( driver . find_elements_by_xpath ( ' //*[@id= " q-app " ]/div//main//div//table/tbody/tr[1]/td[5]/span[contains(., " Locked " )] ' ) ) > 0 , " Subscriber status was not edited " )