![]() ![]() ![]() click_go_button () search_results_page = page. is_title_matches (), " title doesn't match." #Sets the text of search textbox to "pycon" main_page. driver ) #Checks if the word "Python" is in title assert main_page. This test verifies that the results were not empty.""" #Load the main page. Note that it does not look for any particular text in search results page. Searches for the word "pycon" then verified that some results show up. get ( "" ) def test_search_in_python_org ( self ): """Tests search feature. TestCase ): """A sample test class to show how page object works""" def setUp ( self ): self. Import unittest from selenium import webdriver import page class PythonOrgSearch ( unittest.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |