MCPcopy Create free account
hub / github.com/appium/python-client / test_activate_app

Function test_activate_app

test/unit/webdriver/app_test.py:80–89  ·  view source on GitHub ↗
(driver_func)

Source from the content-addressed store, hash-verified

78@pytest.mark.parametrize('driver_func', [android_w3c_driver, ios_w3c_driver])
79@httpretty.activate
80def test_activate_app(driver_func):
81 driver = driver_func()
82 httpretty.register_uri(httpretty.POST, appium_command('/session/1234567890/execute/sync'), body='{"value": ""}')
83 result = driver.activate_app('com.app.id')
84
85 assert {
86 'args': [{'appId': 'com.app.id', 'bundleId': 'com.app.id'}],
87 'script': 'mobile: activateApp',
88 } == get_httpretty_request_body(httpretty.last_request())
89 assert isinstance(result, WebDriver)
90
91
92@pytest.mark.parametrize('driver_func', [android_w3c_driver, ios_w3c_driver])

Callers

nothing calls this directly

Calls 3

appium_commandFunction · 0.90
activate_appMethod · 0.80

Tested by

no test coverage detected