getCurrentDeviceActivity

Get current device activity.

Usage

1
browser.getCurrentDeviceActivity();

Example

getCurrentDeviceActivity.js
1
2
3
4
it('should get current Android activity', function () {
var activity = browser.getCurrentDeviceActivity();
console.log(activity); // returns ".MainActivity"
});

Support

Support for android