Current Dev State

This commit is contained in:
Tim Lorsbach
2025-06-23 20:13:54 +02:00
parent b4f9bb277d
commit ded50edaa2
22617 changed files with 4345095 additions and 174 deletions

View 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')
}