def test_button_in_top_bar(self): base_page = BasePage() button_python_locator = base_page.button_Python_header button_psf_locator = base_page.button_psf_header button_docs_locator = base_page.button_Docs_header button_pypi_locator = base_page.button_PypI_header button_jobs_locator = base_page.button_Jobs_header button_community_locator = base_page.button_Community_header """Checking top-bar menu is worked""" assert base_page.is_element_present(button_python_locator) is False, \ "Check present button Python in top-menu in main page" base_page.push(button_python_locator) assert base_page.is_element_present(button_psf_locator) is False, \ "Check present button PSF in top-menu in main page" base_page.push(button_psf_locator) assert base_page.is_element_present(button_docs_locator) is False, \ "Check present button Docs in top-menu in main page" base_page.push(button_docs_locator) base_page.back_to_privies_page(button_docs_locator) assert base_page.is_element_present(button_pypi_locator) is False, \ "Check present button PyPI in top-menu in main page" base_page.push(button_pypi_locator) base_page.back_to_privies_page(button_pypi_locator) assert base_page.is_element_present(button_jobs_locator) is False, \ "Check present button Jobs in top-menu in main page" base_page.push(button_jobs_locator) assert base_page.is_element_present(button_community_locator) is False, \ "Check present button Community in top-menu in main page" base_page.push(button_community_locator)
def test_logo(self): base_page = BasePage() logo_locator = base_page.logo_image_link main_dropdown = MainNavigationMenu() about_in_main_menu_locator = main_dropdown.tab_about_tob_bar download_in_main_menu_locator = main_dropdown.tab_downloads_tob_bar documentation_in_main_menu_locator = main_dropdown.tab_documentation_tob_bar community_in_main_menu_locator = main_dropdown.tab_community_tob_bar success_stories_in_main_menu_locator = main_dropdown.tab_success_stories_tob_bar news_in_main_menu_locator = main_dropdown.tab_news_tob_bar events_in_main_menu_locator = main_dropdown.tab_events_tob_bar '''-----------------------------------------------------------------------------------''' base_page.push(about_in_main_menu_locator) assert base_page.is_element_present(logo_locator) is False, \ '''Check present logo on the page after click in the item About''' base_page.push(logo_locator) home_page = HomePage() launch_shel_locator = home_page.launch_interactive_shell assert base_page.is_element_present(launch_shel_locator) is False, \ '''After click on the logo, check is it the button Lounch Interactiv shell''' '''-----------------------------------------------------------------------------------''' base_page.push(download_in_main_menu_locator) assert base_page.is_element_present(logo_locator) is False, \ '''Check present logo on the page after click in the item Downloads''' base_page.push(logo_locator) home_page = HomePage() launch_shel_locator = home_page.launch_interactive_shell assert base_page.is_element_present(launch_shel_locator) is False, \ '''After click on the logo, check is it the button Lounch Interactiv shell''' '''-----------------------------------------------------------------------------------''' base_page.push(documentation_in_main_menu_locator) assert base_page.is_element_present(logo_locator) is False, \ '''After click on the logo, check present logo on the page after click in the item Documentation''' base_page.push(logo_locator) home_page = HomePage() launch_shel_locator = home_page.launch_interactive_shell assert base_page.is_element_present(launch_shel_locator) is False, \ '''Check is it the button Lounch Interactiv shell''' '''-----------------------------------------------------------------------------------''' base_page.push(community_in_main_menu_locator) assert base_page.is_element_present(logo_locator) is False, \ '''After click on the logo, check present logo on the page after click in the item Community''' base_page.push(logo_locator) home_page = HomePage() launch_shel_locator = home_page.launch_interactive_shell assert base_page.is_element_present(launch_shel_locator) is False, \ '''Check is it the button Lounch Interactiv shell''' '''-----------------------------------------------------------------------------------''' base_page.push(success_stories_in_main_menu_locator) assert base_page.is_element_present(logo_locator) is False, \ '''After click on the logo, check present logo on the page after click in the item Success Stories''' base_page.push(logo_locator) home_page = HomePage() launch_shel_locator = home_page.launch_interactive_shell assert base_page.is_element_present(launch_shel_locator) is False, \ '''Check is it the button Lounch Interactiv shell''' '''-----------------------------------------------------------------------------------''' base_page.push(news_in_main_menu_locator) assert base_page.is_element_present(logo_locator) is False, \ '''After click on the logo, check present logo on the page after click in the item News''' base_page.push(logo_locator) home_page = HomePage() launch_shel_locator = home_page.launch_interactive_shell assert base_page.is_element_present(launch_shel_locator) is False, \ '''Check is it the button Lounch Interactiv shell''' '''-----------------------------------------------------------------------------------''' base_page.push(events_in_main_menu_locator) assert base_page.is_element_present(logo_locator) is False, \ '''After click on the logo, check present logo on the page after click in the item Events''' base_page.push(logo_locator) home_page = HomePage() launch_shel_locator = home_page.launch_interactive_shell assert base_page.is_element_present(launch_shel_locator) is False, \ '''Check is it the button Lounch Interactiv shell''' path_into_screenshot = "C:/My/Projects/Pyscreen/" name_screen = "test" base_page.make_screenshot(path_into_screenshot, name_screen)