def login_cancel(self, email): main_elements = MainPageElements(self.driver) general_action = GeneralActions(self.driver) general_action.click_on_button(main_elements.login_button()) main_elements.dialog_username_input().click() main_elements.dialog_username_input().send_keys(email) main_elements.dialog_cancel_button().click()
def login_full_case(self, email): main_elements = MainPageElements(self.driver) login_elements = LoginPageElements(self.driver) general_action = GeneralActions(self.driver) general_action.click_on_button(main_elements.login_button()) main_elements.dialog_username_input().click() main_elements.dialog_username_input().send_keys(email) main_elements.dialog_next_button().click() login_elements.use_automatic_button().click() login_elements.login_button().click() time.sleep(35)