예제 #1
0
    def submit_email(self):
        """
        Clicks 'Join' button on subscription form

        :return:
        """
        BasePage.click(self, self.ID, "mc-embedded-subscribe")
예제 #2
0
    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)
예제 #3
0
    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)
예제 #4
0
    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)
예제 #5
0
    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)
예제 #6
0
    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)
예제 #7
0
    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')