コード例 #1
0
ファイル: test_home.py プロジェクト: abnair24/qmo-tests
    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.')
コード例 #2
0
def test_is_download_button_displayed(base_url, selenium):
    page = NotFoundPage(base_url, selenium).open()
    assert page.download_button.is_displayed
コード例 #3
0
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