def test_that_proper_404_error_page_displayed(self, mozwebqa): not_found_page = NotFoundPage(mozwebqa) not_found_page.go_to_not_found_page() Assert.contains(not_found_page.page_title, u'Sorry, we couldn’t find that.') Assert.equal(not_found_page.get_page_status_code(), 404, u'GET request to this page should return 404 status code.')
def test_is_download_button_displayed(base_url, selenium): page = NotFoundPage(base_url, selenium).open() assert page.download_button.is_displayed
def test_go_back_button_is_displayed_with_history(base_url, selenium): selenium.get(base_url) page = NotFoundPage(selenium, base_url).open() assert page.is_go_back_button_displayed