Quantum utilities | Switch context when testing hybrid applications

To switch the context in Quantum from or to NATIVE or WEBVIEW, you can use the switchToContext function. This function is part of the DeviceUtils class. For example:

Copy

Switch to native context

DeviceUtils.switchToContext("NATIVE");
Copy

Switch to webview context

DeviceUtils.switchToContext("WEBVIEW");