def test_result_found(self):
     home_page = HomePage(self.driver)
     home_page.set_search_query("Design patterns")
     home_page.search()
     result = SearchPage(self.driver)
     assert result.heading_text() == "Design pattern"
 def test_buttons_click(self):
     main_page = HomePage(self.driver)
     main_page.login()
     main_page.search()