We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a8b1da commit e9db507Copy full SHA for e9db507
test/unit/webdriver/app_test.py
@@ -88,6 +88,19 @@ def test_terminate_app(self):
88
assert {'app': "com.app.id"}, get_httpretty_request_body(httpretty.last_request())
89
assert result is True
90
91
+ @httpretty.activate
92
+ def test_activate_app(self):
93
+ driver = android_w3c_driver()
94
+ httpretty.register_uri(
95
+ httpretty.POST,
96
+ appium_command('/session/1234567890/appium/device/activate_app'),
97
+ body='{"value": ""}'
98
+ )
99
+ result = driver.activate_app("com.app.id")
100
+
101
+ assert {'app': 'com.app.id'}, get_httpretty_request_body(httpretty.last_request())
102
+ assert isinstance(result, WebDriver)
103
104
@httpretty.activate
105
def test_background_app(self):
106
driver = android_w3c_driver()
0 commit comments