Example #1
0
    def test_validate_book_an_activity(self):
        home_screen = HomeScreen(self.driver)
        home_screen.check_activity_calendar()

        activity_page = ActivityPage(self.driver)
        activity_page.validate_available_day_for_booking()
        activity_page.validate_book_now_button()
Example #2
0
    def test_validate_counting_tickets(self):
        home_screen = HomeScreen(self.driver)
        home_screen.validate_attractions()

        activity_page = ActivityPage(self.driver)
        activity_page.validate_book_now_button()
        activity_page.validate_tickets()
Example #3
0
 def test_home_screen_components(self):
     home_screen = HomeScreen(self.driver)
     home_screen.validate_title_and_logo()
     # home_screen.validate_title_is_present()
     # home_screen.validate_icon_is_present()
     home_screen.validate_menu_options_are_present()
     home_screen.validate_posts_are_visible()
     home_screen.validate_social_media_links()
Example #4
0
    def test_about_screen_components(self):
        home_screen = HomeScreen(self.driver)
        home_screen.click_about_me_link()

        about_screen = AboutScreen(self.driver)
        about_screen.validate_title_is_present()
        about_screen.validate_icon_is_present()
        about_screen.validate_menu_options_are_present()
        about_screen.validate_social_media_links()
        about_screen.validate_about_me_header()
        about_screen.validate_about_me_post()
Example #5
0
    def test_post_screen_components(self):
        home_screen = HomeScreen(self.driver)
        home_screen.click_first_post()

        post_screen = PostScreen(self.driver)
        post_screen.validate_title_is_present()
        post_screen.validate_icon_is_present()
        post_screen.validate_menu_options_are_present()
        post_screen.validate_social_media_links()
        post_screen.validate_featured_image()
        post_screen.validate_published_date()
        post_screen.validate_share_buttons()
        post_screen.validate_comment_section()
Example #6
0
    def test_validate_pages_data(self):

        home_screen = HomeScreen(self.driver)

        home_screen.setLocationValue()
        home_screen.click_search_button()

        search_page = SearchPage(self.driver)

        initial_search_location = search_page.search_result_location()

        assert search_value == initial_search_location
Example #7
0
    def test_validate_quiz(self):
        home_screen = HomeScreen(self.driver)

        self.driver.instance.implicitly_wait(30)

        for image in range(0, 9):
            home_screen.personality_quiz_image()

        results = home_screen.get_personality_results()

        home_screen.search_with_quiz_results()

        search_page = SearchPage(self.driver)
        personality_quiz_search = search_page.input_values_in_seach_box(
            results)
        assert results in personality_quiz_search
    def test_search_for_result(self):
        # with pytest.allure.step('step one'):
        welcome_screen = WelcomeScreen(self.driver)
        welcome_screen.go_to_home_screen()

        # with pytest.allure.step('step two'):
        home_screen = HomeScreen(self.driver)
        home_screen.search_for_results("Python")
        home_screen.click_desired_result("Python (programming language)")

        # with pytest.allure.step('step three'):
        result_screen = ResultScreen(self.driver)
        assert result_screen.articleHeader.text == "Python (programming language)"
 def test_home_screen(self):
     home_screen = HomeScreen(self.driver)
     # Upper MENU
     home_screen.validate_shift_icon_present()
     home_screen.validate_location_menu_present()
     home_screen.validate_heart_icon_id_present()
     home_screen.validate_browse_cars_present()
     home_screen.validate_sell_your_car_present()
     home_screen.validate_financing_present()
     home_screen.validate_how_shift_works_link_present()
     home_screen.validate_more_present()
     home_screen.validate_sign_in_present()
Example #10
0
 def test_displayedMessage(self):
     home_screen = HomeScreen(self.driver)
     home_screen.validate_message_displayed()
Example #11
0
 def test_home_screen_components(self):
     home_screen = HomeScreen(self.driver)
     home_screen.validate_card_title_is_present()
     home_screen.validate_login_button_is_present()
     home_screen.validate_credential_fields_are_present()
     home_screen.validate_register_link_is_present()
Example #12
0
 def test_home_screen_components(self):
     home_screen = HomeScreen(self.driver)
     home_screen.validate_title_is_present()
     home_screen.validate_searchbar_is_present()
     home_screen.validate_nav_bar_options_are_present()
     home_screen.validate_shortcuts_are_visible()