.contexts() Suggest edits
Get a list of the available contexts.
Used by Appium when testing hybrid mobile web apps. More info here: https://github.com/appium/appium/blob/master/docs/en/advanced-concepts/hybrid.md.
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' |