* Switches to native context. * By default switches to NATIVE_APP context unless other specified. * * ```js * I.switchToNative(); * * // or set context explicitly * I.switchToNative('SOME_OTHER_CONTEXT'); * ``` * @param {*} [context] * @return {Promise }
(context = null)
| 930 | * @return {Promise<void>} |
| 931 | */ |
| 932 | async switchToNative(context = null) { |
| 933 | this.isWeb = false |
| 934 | this.defaultContext = '//*' |
| 935 | |
| 936 | if (context) return this.switchToContext(context) |
| 937 | return this.switchToContext('NATIVE_APP') |
| 938 | } |
| 939 | |
| 940 | /** |
| 941 | * Start an arbitrary Android activity during a session. |
no test coverage detected