def open_next_scheduled_transfer(self): """ Preview the next scheduled transfer """ top_transfer = BaseElement(self.driver, locators.FIRST_SCHEDULED_TRANSFER_LINK) top_transfer.click() BaseElement(self.driver, locators.RECEIPT_STATUS_TEXT).wait_until_displayed()
def enter(self, address): """ Enter the login page For web platform, this means loading the login page URL For mobile platforms, this means selecting the login option on the main activity """ entry_button = BaseElement(self.driver, locators.LOGIN_ENTRY_BUTTON) entry_button.wait_until_displayed() entry_button.click()
def close_previewed_transfer(self): """ Close transfer preview """ close_confirmation_button = BaseElement(self.driver, locators.RECEIPT_CLOSE_BUTTON) close_confirmation_button.click() BaseElement(self.driver, locators.RECEIPT_STATUS_TEXT).wait_until_not_displayed()
def submit_transfer_request(self): """ Submit a prepared and scheduled transfer request """ submit_button = BaseElement(self.driver, locators.SCHEDULE_TRANSFER_BUTTON) submit_button.click() BaseElement(self.driver, locators.RECEIPT_STATUS_TEXT).wait_until_displayed()
def cancel_previewed_transfer(self): """ Cancel transfer preview """ BaseElement(self.driver, locators.SCHEDULED_CANCEL_BUTTON).click() confirm_cancel_button = BaseElement(self.driver, locators.CONFIRM_CANCEL_BUTTON) confirm_cancel_button.click() confirm_cancel_button.wait_until_not_displayed() BaseElement(self.driver, locators.WORKING_SPINNER).wait_until_not_displayed()
def return_to_dashboard(self): """ Navigate back to the customer dashboard """ location = BaseElement(self.driver, locators.LOCATION_TEXT) # Begin navigation if we are not already at the dashboard if location.get_text() != 'Account Summary': drawer_button = BaseElement(self.driver, locators.DRAWER_BUTTON) if drawer_button.not_displayed(): # If the drawer button isn't displayed, then we need to click the back-button to make it appear back_button = BaseElement(self.driver, locators.NAVIGATE_UP_BUTTON) if back_button.displayed(5): back_button.click() drawer_button.click() BaseElement(self.driver, locators.SUMMARY_BUTTON).click() location.wait_until_displayed()
def review_your_info(self): """ Confirm the Customer Info """ confirm_info_button = BaseElement(self.driver, locators.RYI_VERIFY_INFO_BUTTON) confirm_info_button.click()
def logout(self): """ Log out """ logout_link = BaseElement(self.driver, locators.LOGOUT_LINK) logout_link.scroll_into_viewport() logout_link.click()
def open_transaction_modal_details(self): """ Open the most recent transaction modal """ transaction_modal_description = BaseElement(self.driver, locators.FIRST_TRANSACTION_DESCRIPTION) transaction_modal_description.click() BaseElement(self.driver, locators.TRANSACTION_MODAL_DESCRIPTION).wait_until_displayed()