Ejemplo n.º 1
0
 def test_logout(self):
     Element.fetch_element_by_id(self.launch_browser,ElementValueLogout.ctrl_logout).click()
     try:
         time.sleep(2)
         Element.fetch_element_by_id(self.launch_browser,"ext-gen100").click()
     except NoSuchElementException:
         print("Element not found\n")
Ejemplo n.º 2
0
class SVMLogin:
    launch_driver = SeleniumWebdriver.driver
    launch_driver.get(Credentials.url)
    Element.fetch_element_by_id(launch_driver,
                                ElementValueLogin.ctrl_login).send_keys(
                                    Credentials.user_name)
    Element.fetch_element_by_id(launch_driver,
                                ElementValueLogin.ctrl_password).send_keys(
                                    Credentials.password)
    Element.fetch_element_by_id(launch_driver,
                                ElementValueLogin.btn_submit).click()
Ejemplo n.º 3
0
 def test_login(self,username,password):
     new_browser = self.launch_browser.get(Credentials.url)
     time.sleep(2)
     Element.fetch_element_by_id(self.launch_browser, ElementValueLogin.ctrl_login).send_keys(username)
     Element.fetch_element_by_id(self.launch_browser, ElementValueLogin.ctrl_password).send_keys(password)
     Element.fetch_element_by_id(self.launch_browser, ElementValueLogin.btn_submit).click()
     time.sleep(2)
Ejemplo n.º 4
0
 def test_notification_click(self):
     new_driver = SeleniumWebdriver.driver
     time.sleep(10)
     Element.fetch_element_by_id(
         new_driver, ElementValueFeatures.ctrl_notification).click()
Ejemplo n.º 5
0
 def test_dashboard_click(self):
     new_driver = SeleniumWebdriver.driver
     time.sleep(10)
     Element.fetch_element_by_id(
         new_driver, ElementValueFeatures.ctrl_dashboard).click()