From 181e7ab85d8175192d73b22343f0f687d714ebe8 Mon Sep 17 00:00:00 2001 From: Barbara Miller Date: Wed, 17 Oct 2018 17:23:50 -0700 Subject: [PATCH] page.interstitial exception test --- tests/test_brozzling.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test_brozzling.py b/tests/test_brozzling.py index 8c2c9c8..8b18b5c 100644 --- a/tests/test_brozzling.py +++ b/tests/test_brozzling.py @@ -111,6 +111,12 @@ def test_aw_snap_hes_dead_jim(): with pytest.raises(brozzler.BrowsingException): browser.browse_page('chrome://crash') +def test_page_interstitial_exception(): + chrome_exe = brozzler.suggest_default_chrome_exe() + with brozzler.Browser(chrome_exe=chrome_exe) as browser: + with pytest.raises(brozzler.PageInterstitialShown): + browser.browse_page('https://monitor.archive.org/cgi-bin/nagios3/status.cgi?hostgroup=38.wbgrp') + def test_on_response(httpd): response_urls = [] def on_response(msg):