Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /webdriver/tests/bidi/browsing_context/navigate/error.py - WPT Dashboard Interop Dashboard
import pytest
from . import navigate_and_assert
pytestmark = pytest.mark.asyncio
@pytest.mark.parametrize(
"url",
[
"thisprotocoldoesnotexist://",
],
ids=[
"protocol",
"host",
"port",
]
)
async def test_invalid_address(bidi_session, new_tab, url):
await navigate_and_assert(bidi_session, new_tab, url, expected_error=True)