Skip to main content

Setting Context

info

Please note that this tool is classified as a Legacy tool. We recommend transitioning to our updated solutions to maintain optimal performance and security in your workflows. For more information on this matter, please reach out to technical support .

Context can be changed to native instrumented using following command (instrumented elements have red color in object spy):
driver.context("NATIVE_APP_INSTRUMENTED");

Context can be changed to native non-instrumented using the following command (non-instrumented elements have a yellow color in object spy):

driver.context("NATIVE_APP");

In addition, context can be changed to web context where web elements can be identified and tested:

driver.context("WEBVIEW_1");

These settings will be used until other context is set using driver.context call.