Beispiel #1
0
    def logout(self):
        """ Log out of secure area

        :returns: login page object instance
        """
        from pageobjects.login import LoginPageObject

        self.logout_button.click()
        return LoginPageObject(self.driver_wrapper).wait_until_loaded()
    def logout(self):
        try:
            from pageobjects.login import LoginPageObject
            self.logger.debug("\nAtempting to click logout button")

            self.logout_button.click()
            time.sleep(3)
            return LoginPageObject(self.driver_wrapper).wait_until_loaded()
        except NoSuchElementException:
            self.auto_log("error", "Element {} does not exist".format(element))
            return None
Beispiel #3
0
    def logout(self):
        """ Log out of secure area

        :returns: login page object instance
        """
        from pageobjects.login import LoginPageObject
        self.logger.debug("\nAtempting to click logout button")

        self.logout_button.click()
        time.sleep(5)
        return LoginPageObject(self.driver_wrapper).wait_until_loaded()
 def test_1_Login(self):
     lpo = LoginPageObject()
     lpo.username = KATELLO.username
     lpo.password = KATELLO.password
     lpo.submit()
    def test_login(self):
        lpo = LoginPageObject(self.driver, self.base_url)

        lpo.username = "******"
        lpo.password = "******"
        lpo.submit()
Beispiel #6
0
def step_impl(context):
    context.current_page = LoginPageObject()
    assert context.current_page.open()
Beispiel #7
0
 def test_1_Login(self):
     lpo = LoginPageObject()
     lpo.username = KATELLO.username
     lpo.password = KATELLO.password
     lpo.submit()