@pytest.mark.xfail_phantomjs(reason='PhantomJS does not implement page load timeouts')
def testShouldTimeoutOnPageLoadTakingTooLong(self, driver, pages):
    driver.set_page_load_timeout(0.01)
    with pytest.raises(TimeoutException):
        pages.load('simpleTest.html')
@pytest.mark.xfail_phantomjs(reason='PhantomJS does not implement page load timeouts')
def testShouldTimeoutOnPageLoadTakingTooLong(self, driver, pages):
    driver.set_page_load_timeout(0.01)
    with pytest.raises(TimeoutException):
        pages.load('simpleTest.html')