Exemplo n.º 1
0
 def test_add_most_critical_advisories(self):
     launch_driver = selenium_webdriver.driver
     time.sleep(10)
     try:
         Element.fetch_element_by_class(launch_driver, AddDashboard.ctrl_add_class).click()
         Element.fetch_element_by_partial_linktext(launch_driver, AddDashboard.ctrl_most_critical_advisories).click()
         Element.fetch_element_by_xpath(launch_driver, Dashboard.ctrl_save_button).click()
     except NoSuchElementException:
         print("element critical advisories not found")
Exemplo n.º 2
0
 def test_add_latest_advisories_per_watch_list(self):
     launch_driver = selenium_webdriver.driver
     time.sleep(10)
     try:
         Element.fetch_element_by_class(launch_driver, AddDashboard.ctrl_add_class).click()
         Element.fetch_element_by_partial_linktext(launch_driver, AddDashboard.ctrl_latest_advisories_per_watchList).click()
         Element.fetch_element_by_xpath(launch_driver, Dashboard.ctrl_save_button).click()
     except NoSuchElementException:
         print("element latest advisories per watch not found")
Exemplo n.º 3
0
 def test_add_latest_advisories_affecting_your_security(self):
     launch_driver = selenium_webdriver.driver
     time.sleep(10)
     try:
         Element.fetch_element_by_class(launch_driver, AddDashboard.ctrl_add_class).click()
         Element.fetch_element_by_partial_linktext(launch_driver, AddDashboard.ctrl_latest_advisories_affecting_your_security).click()
         Element.fetch_element_by_xpath(launch_driver, Dashboard.ctrl_save_button).click()
     except NoSuchElementException:
         print("element latest advisories affecting your security not found")
Exemplo n.º 4
0
 def test_add_devices_status_time(self):
     launch_driver = selenium_webdriver.driver
     time.sleep(10)
     try:
         Element.fetch_element_by_class(launch_driver, AddDashboard.ctrl_add_class).click()
         Element.fetch_element_by_partial_linktext(launch_driver, AddDashboard.ctrl_devices_status_time).click()
         Element.fetch_element_by_xpath(launch_driver, Dashboard.ctrl_save_button).click()
     except NoSuchElementException:
         print("element device status time not found")
Exemplo n.º 5
0
 def test_add_your_latest_assigned_tickets(self):
     launch_driver = selenium_webdriver.driver
     time.sleep(10)
     try:
         Element.fetch_element_by_class(launch_driver, AddDashboard.ctrl_add_class).click()
         Element.fetch_element_by_partial_linktext(launch_driver, AddDashboard.ctrl_your_latest_assigned_tickets).click()
         Element.fetch_element_by_xpath(launch_driver, Dashboard.ctrl_save_button).click()
     except NoSuchElementException:
         print("element not found")
Exemplo n.º 6
0
 def test_add_most_prevalent_insecure_software_installtions(self):
     launch_driver = selenium_webdriver.driver
     time.sleep(10)
     try:
         Element.fetch_element_by_class(launch_driver, AddDashboard.ctrl_add_class).click()
         Element.fetch_element_by_partial_linktext(launch_driver, AddDashboard.ctrl_most_prevalent_insecure_software_installtions).click()
         Element.fetch_element_by_xpath(launch_driver, Dashboard.ctrl_save_button).click()
     except NoSuchElementException:
         print("element not found")
Exemplo n.º 7
0
 def test_add_advisories(self):
     launch_driver = SeleniumWebdriver.driver
     time.sleep(10)
     try:
         Element.fetch_element_by_class(
             launch_driver, AddDashboard.ctrl_add_class).click()
         Element.fetch_element_by_xpath(
             launch_driver, AddDashboard.ctrl_advisories).click()
         Element.fetch_element_by_xpath(launch_driver,
                                        Dashboard.ctrl_save_button).click()
     except NoSuchElementException:
         print("element advisories not found")
Exemplo n.º 8
0
 def test_add_latest_available_patches(self):
     launch_driver = SeleniumWebdriver.driver
     time.sleep(10)
     try:
         Element.fetch_element_by_class(
             launch_driver, AddDashboard.ctrl_add_class).click()
         Element.fetch_element_by_partial_linktext(
             launch_driver,
             AddDashboard.ctrl_latest_available_patches).click()
         Element.fetch_element_by_xpath(launch_driver,
                                        Dashboard.ctrl_save_button).click()
     except NoSuchElementException:
         print("element latest available patches not found")