Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /webdriver/bidi/browsing_context/get_tree/invalid.py - WPT Dashboard Interop Dashboard
import pytest
from webdriver.bidi import error
pytestmark = pytest.mark.asyncio
@pytest.mark.allow_system_access
async def test_mutual_exclusive_with_scope(bidi_session, top_context):
with pytest.raises(error.InvalidArgumentException):
await bidi_session.browsing_context.get_tree(
root=top_context["context"], _extension_params={"moz:scope": "chrome"}
)