forked from enviPath/enviPy
Current Dev State
This commit is contained in:
21
static/js/ketcher2/node_modules/webdriverio/lib/protocol/currentActivity.js
generated
vendored
Normal file
21
static/js/ketcher2/node_modules/webdriverio/lib/protocol/currentActivity.js
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
/**
|
||||
*
|
||||
* Receive the current activity on an Android device.
|
||||
*
|
||||
* <example>
|
||||
:rotateAsync.js
|
||||
it('should get the activity of the android device', function () {
|
||||
var activity = browser.currentActivity()
|
||||
console.log(activity); // returns android activity information
|
||||
});
|
||||
* </example>
|
||||
*
|
||||
* @see https://github.com/appium/appium-android-driver/blob/master/lib/commands/general.js#L59-L61
|
||||
* @type mobile
|
||||
* @for android
|
||||
*
|
||||
*/
|
||||
|
||||
export default function currentActivity () {
|
||||
return this.requestHandler.create('/session/:sessionId/appium/device/current_activity')
|
||||
}
|
||||
Reference in New Issue
Block a user