def test_navigation_from_main_navigation_bar(self):
        navigator_menu = MainNavigationMenu()
        base_page = BasePage()

        success_stories_item = navigator_menu.tab_success_stories_tob_bar
        arts_item = navigator_menu.item_arts_locator
        business_item = navigator_menu.item_business_locator
        '''Enable drop-down menu'''
        base_page.enable_drop_down(success_stories_item)
        '''Click in item in drop-down menu'''
        item_arts = navigator_menu.enable_drop_down(arts_item)
        item_arts.click()
        text = 'success'
        current_url = base_page.get_current_url()

        assert (text in current_url), \
            '''Check some text in url'''
        '''If element not fount beck in privies pages'''
        base_page.back_to_privies_page(business_item)
        '''Enable drop-down menu'''
        base_page.enable_drop_down(success_stories_item)
        '''Click in item in drop-down menu'''
        item_business = navigator_menu.enable_drop_down(business_item)
        item_business.click()

        text = 'business'
        current_url = base_page.get_current_url()

        assert (text in current_url), \
            '''Check some text in url'''
    def test_present_all_elements(self):
        route_url = '/about/gettingstarted/'
        self.add_rout_in_url_and_go_to_url(route_url)
        getting_started_page = GettingStarted()
        base_page = BasePage()

        elements_on_getting_started_page_locators = getting_started_page.getting_started_element_list
        HomePage().check_element_on_page(
            elements_on_getting_started_page_locators)
        '''Go to the iframe'''
        iframe_widget = IframeWidget()
        '''Locators in tweets widget'''
        psd_link = iframe_widget.the_psf_link_locator
        button_load_more_tweets = iframe_widget.button_load_more_tweets_locator

        tweets_locator = iframe_widget.tweet_locator
        '''Get list with the tweets'''
        tweets = base_page.get_list_elements(tweets_locator)
        len_tweets = len(tweets)
        print('\n---------len list--------\n' + str(len_tweets))

        base_page.scroll_into_view(button_load_more_tweets)
        base_page.push(button_load_more_tweets)
        '''Get list with the tweets after click in load more tweet button'''
        tweets_after = base_page.get_list_elements(tweets_locator)  #
        len_tweets_after_click = len(tweets_after)
        print('\n-----len after click list------\n' +
              str(len_tweets_after_click))

        assert len_tweets < len_tweets_after_click, \
            '''Check the len two list'''

        base_page.push(psd_link)
        current_url = base_page.get_current_url()
        expect_url = 'https://twitter.com'
        assert (expect_url in current_url) is False, \
            '''Check on conformity expected url and current url'''
    def test_navigation_menu_in_footer(self):

        base_page = BasePage()
        getting_started_in_footer_locator = base_page.getting_started_in_footer
        mac_os_x_in_footer_locator = base_page.mac_os_x_in_footer
        audio_visual_talks_part_footer_locator = base_page.audio_visual_talks_part_footer
        diversity_footer_locator = base_page.diversity_footer
        arts_footer_locator = base_page.arts_footer
        psf_news_footer_locator = base_page.psf_news_footer
        core_mentorship_footer_locator = base_page.core_mentorship_footer
        python_events_footer_locator = base_page.python_events_footer

        footer_locator = base_page.top_part_footer

        base_page.scroll_into_view(footer_locator)
        time.sleep(0.5)
        base_page.push(getting_started_in_footer_locator)
        current_url = base_page.get_current_url()

        text = 'gettingstarted'
        assert (text in current_url), \
            '''Check is there a text in the variable url on the page'''
        '''---------------------------------------------------------------------------------------'''

        base_page.scroll_into_view(footer_locator)
        time.sleep(0.5)
        base_page.push(mac_os_x_in_footer_locator)
        current_url = base_page.get_current_url()

        text = 'mac-osx'
        assert (text in current_url), \
            '''Check is there a text in the variable url on the page'''
        '''---------------------------------------------------------------------------------------'''

        base_page.scroll_into_view(footer_locator)
        time.sleep(0.5)
        base_page.push(audio_visual_talks_part_footer_locator)
        current_url = base_page.get_current_url()

        text = 'av'
        assert (text in current_url), \
            '''Check is there a text in the variable url on the page'''
        '''---------------------------------------------------------------------------------------'''

        base_page.scroll_into_view(footer_locator)
        time.sleep(0.5)
        base_page.push(diversity_footer_locator)
        current_url = base_page.get_current_url()

        text = 'diversity'
        assert (text in current_url), \
            '''Check is there a text in the variable url on the page'''
        '''---------------------------------------------------------------------------------------'''

        base_page.scroll_into_view(footer_locator)
        time.sleep(0.5)
        base_page.push(arts_footer_locator)
        current_url = base_page.get_current_url()

        text = 'arts'
        assert (text in current_url), \
            '''Check is there a text in the variable url on the page'''
        '''---------------------------------------------------------------------------------------'''

        base_page.scroll_into_view(footer_locator)
        time.sleep(0.5)
        base_page.push(psf_news_footer_locator)
        current_url = base_page.get_current_url()

        text = 'blogspot'
        assert (text in current_url), \
            '''Check is there a text in the variable url on the page'''
        '''---------------------------------------------------------------------------------------'''

        base_page.back_to_privies_page(
            core_mentorship_footer_locator
        )  # if element with 'core_mentorship_footer_locator' not fount back to privies page
        base_page.scroll_into_view(footer_locator)
        time.sleep(0.5)
        base_page.push(core_mentorship_footer_locator)
        current_url = base_page.get_current_url()

        text = 'mentorship'
        assert (text in current_url), \
            '''Check is there a text in the variable url on the page'''
        '''---------------------------------------------------------------------------------------'''

        base_page.scroll_into_view(footer_locator)
        time.sleep(0.5)
        base_page.push(python_events_footer_locator)
        current_url = base_page.get_current_url()

        text = 'events'
        assert (text in current_url), \
            '''Check is there a text in the variable url on the page'''
        '''---------------------------------------------------------------------------------------'''