def test_should_wait_and_fail_for_incorrect_url(): config.timeout = 0.1 with pytest.raises(TimeoutException): open_url(start_page) wait_to(url("xttp:/"))
def test_can_wait_for_exact_url(): open_url(start_page) wait_to(url(driver().current_url))