def submit_email(self): """ Clicks 'Join' button on subscription form :return: """ BasePage.click(self, self.ID, "mc-embedded-subscribe")
def populate_email(self, email): """ Populates email text field with desired data :param email: str - desired email :return: """ BasePage.enter(self, self.ID, "mce-EMAIL", email)
def navigate_about(self): """ Navigates to 'About' page :return: DogAboutPage """ self.__trigger_hidden_menu() BasePage.click(self, self.XPATH, "//a[@href='/dog-api/about']") return DogAboutPage(self.driver)
def navigate_breeds_list(self): """ Navigates to 'Breed list' page :return: DogBreedListPage """ self.__trigger_hidden_menu() BasePage.click(self, self.XPATH, "//a[@href='/dog-api/breeds-list']") return DogBreedListPage(self.driver)
def navigate_documentation(self): """ Navigates to 'Documentation' page :return: DogDocumentationPage """ self.__trigger_hidden_menu() BasePage.click(self, self.XPATH, "//a[@href='/dog-api/documentation']") return DogDocumentationPage(self.driver)
def navigate_main(self): """ Navigates to 'Title' page :return: DogTitlePage """ self.__trigger_hidden_menu() BasePage.click(self, self.XPATH, "//img[@class='logo']") return DogTitlePage(self.driver)
def get_value_email(self): """ Gets the value from email text field :return: str """ return BasePage.get_element(self, self.ID, "mce-EMAIL").get_attribute('value')