def login_email_step(self, email, correct_email=''):
        self.__set_email(email)
        self.__click_submit()

        return Utils.return_first_class_or_second_class(
            self.driver, LoginPasswordPage, LoginAccountPage, correct_email)
    def get_login_error_text(self):
        Utils.wait_element_to_be_visible(
            self, self.driver, *LoginAccountPage.__ERROR_LOGIN_ACCOUNT)

        return Utils.return_element_text(
            self, self.driver, *LoginAccountPage.__ERROR_LOGIN_ACCOUNT)
 def __set_email(self, email):
     email_field = Utils.return_web_element(self, self.driver,
                                            *LoginAccountPage.__EMAIL_FIELD)
     email_field.send_keys(email)
 def __click_submit(self):
     submit_button = Utils.return_web_element(
         self, self.driver, *LoginAccountPage.__NEXT_BUTTON)
     submit_button.click()
    def get_password_error_text(self):
        Utils.wait_element_to_be_visible(self, self.driver, *LoginPasswordPage.__ERROR_PASSWORD_ACCOUNT)

        return Utils.return_element_text(self, self.driver, *LoginPasswordPage.__ERROR_PASSWORD_ACCOUNT)
 def __init__(self, driver):
     self.driver = driver
     Utils.wait_element_to_be_visible(self, self.driver,
                                      *LoginAccountPage.__EMAIL_FIELD)
    def login_password_step(self, password, correct_password=''):
        self.__set_password(password)
        self.__click_submit()

        return Utils.return_first_class_or_second_class(self.driver, GmailHomePage, LoginPasswordPage, correct_password)
 def __set_password(self, password):
     password_field = Utils.return_web_element(self, self.driver, *LoginPasswordPage.__PASSWORD_FIELD)
     password_field.send_keys(password)
 def __init__(self, driver):
     self.driver = driver
     Utils.wait_element_to_be_visible(self, self.driver, *LoginPasswordPage.__PASSWORD_FIELD)
Пример #10
0
 def __init__(self, driver):
     self.driver = driver
     Utils.wait_element_to_be_visible(self, self.driver, *GmailHomePage.__INBOX_BUTTON)
Пример #11
0
    def inbox_button_is_displayed(self):
        inbox_button = Utils.return_web_element(self, self.driver, *GmailHomePage.__INBOX_BUTTON)

        return inbox_button.is_displayed()