.contexts() Suggest edits
Get a list of the available contexts.
Used by Appium when testing hybrid mobile web apps. More info here: https://appium.readthedocs.io/en/latest/en/commands/context/get-contexts/
Usage
Parameters
| Name | Type | description | 
|---|---|---|
| callback | function | Callback function to be called when the command finishes. | 
Returns
| Type | description | 
|---|---|
| Array | an array of strings representing available contexts, e.g 'WEBVIEW', or 'NATIVE' |