Add asserts in test F Bulk_operations.py file
This commit is contained in:
parent
605550b315
commit
b6f863353c
|
@ -256,6 +256,17 @@ class Bulk_operations(PandoraWebDriverTestCase):
|
|||
edit_modules_in_bulk(driver,module_name_list,agent_name_list,new_min="1",new_max="2")
|
||||
|
||||
self.assertRegexpMatches(self.close_alert_and_get_its_text(), r"^Are you sure[\s\S]$")
|
||||
|
||||
search_module(driver,agent_name_1,module_name_1,go_to_module=True)
|
||||
|
||||
driver.find_element_by_xpath('//a[contains(.,"Advanced options")]').click()
|
||||
|
||||
element = driver.find_element_by_xpath('//tr//td[contains(.,"1")]')
|
||||
self.assertIsInstance(element,WebElement)
|
||||
|
||||
element = driver.find_element_by_xpath('//tr//td[contains(.,"2")]')
|
||||
self.assertIsInstance(element,WebElement)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
|
Loading…
Reference in New Issue