MCPcopy
hub / github.com/appium/python-client / test_context

Function test_context

test/functional/ios/safari_tests.py:54–60  ·  view source on GitHub ↗

Test Safari context switching.

(driver: 'WebDriver')

Source from the content-addressed store, hash-verified

52
53
54def test_context(driver: 'WebDriver') -> None:
55 """Test Safari context switching."""
56 contexts = driver.contexts
57 assert 'NATIVE_APP' == contexts[0]
58 assert contexts[1].startswith('WEBVIEW_')
59 driver.switch_to.context(contexts[1])
60 assert 'WEBVIEW_' in driver.current_context
61
62
63def test_navigation(driver: 'WebDriver') -> None:

Callers

nothing calls this directly

Calls 1

contextMethod · 0.45

Tested by

no test coverage detected