* Check current activity on an Android device. * * ```js * I.seeCurrentActivityIs(".HomeScreenActivity") * ``` * @param {string} currentActivity * @return {Promise } * * Appium: support only Android
(currentActivity)
| 682 | * Appium: support only Android |
| 683 | */ |
| 684 | async seeCurrentActivityIs(currentActivity) { |
| 685 | onlyForApps.call(this, supportedPlatform.android) |
| 686 | const res = await this.browser.getCurrentActivity() |
| 687 | return truth('current activity', `to be ${currentActivity}`).assert(res === currentActivity) |
| 688 | } |
| 689 | |
| 690 | /** |
| 691 | * Check whether the device is locked. |
no test coverage detected