File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -44,13 +44,13 @@ where the page objects will be defined.
44
44
#Load the main page. In this case the home page of Python.org.
45
45
main_page = page.MainPage(self.driver)
46
46
#Checks if the word "Python" is in title
47
- assert main_page.is_title_matches(), "python.org title doesn't match."
47
+ self.assertTrue( main_page.is_title_matches(), "python.org title doesn't match.")
48
48
#Sets the text of search textbox to "pycon"
49
49
main_page.search_text_element = "pycon"
50
50
main_page.click_go_button()
51
51
search_results_page = page.SearchResultsPage(self.driver)
52
52
#Verifies that the results page is not empty
53
- assert search_results_page.is_results_found(), "No results found."
53
+ self.assertTrue( search_results_page.is_results_found(), "No results found.")
54
54
55
55
def tearDown(self):
56
56
self.driver.close()
You can’t perform that action at this time.
0 commit comments