# Cannot find any WEBVIEW to switch to

**URL:** <https://forum.katalon.com/t/cannot-find-any-webview-to-switch-to/60293>\
**Category:** Mobile Testing\
**Tags:** mobile-testing, katalon-studio\
**Created:** [November 23, 2021, 12:23pm UTC](https://forum.katalon.com/t/cannot-find-any-webview-to-switch-to/60293 "2021-11-23T12:23:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![roy.zheng](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/roy.zheng/32/1685_2.png) [@roy.zheng](https://forum.katalon.com/u/roy.zheng)\
**Post date:** [November 23, 2021, 12:23pm UTC](https://forum.katalon.com/t/cannot-find-any-webview-to-switch-to/60293/1 "2021-11-23T12:23:17Z")

</div>

I have a question. Does anyone have a stick for me.

I started com.xmexe.exedevv3, why do I need to close it?

Got response with status 500: {“value”:{“error”:“session not created”,“message”:“session not created: please close ‘com.xmexe.exedevv3’ and try again”

Look at some of my Appium logs:

[debug] e[35m[AndroidDriver]e[39m Got process name: ‘com.xmexe.exedevv3’  
[debug] e[35m[AndroidDriver]e[39m Found 1 webview: [“WEBVIEW\_com.xmexe.exedevv3”]  
[debug] e[35m[AndroidDriver]e[39m Available contexts: [“NATIVE\_APP”,“WEBVIEW\_com.xmexe.exedevv3”]  
[debug] e[35m[AndroidDriver]e[39m Connecting to chrome-backed webview context ‘WEBVIEW\_com.xmexe.exedevv3’  
[debug] e[35m[AndroidDriver]e[39m Using user-specified port 57602 for chromedriver  
[debug] e[35m[AndroidDriver]e[39m Passing web view details to the Chromedriver constructor: {  
[debug] e[35m[AndroidDriver]e[39m “process”: {  
[debug] e[35m[AndroidDriver]e[39m “name”: “com.xmexe.exedevv3”,  
[debug] e[35m[AndroidDriver]e[39m “id”: “8772”  
[debug] e[35m[AndroidDriver]e[39m }  
[debug] e[35m[AndroidDriver]e[39m }  
[debug] e[35m[AndroidDriver]e[39m Automated Chromedriver download is disabled. Use ‘chromedriver\_autodownload’ server feature to enable it  
[debug] e[35m[AndroidDriver]e[39m Precalculated Chromedriver capabilities: {  
[debug] e[35m[AndroidDriver]e[39m “androidPackage”: “com.android.settings”,  
[debug] e[35m[AndroidDriver]e[39m “androidUseRunningApp”: true,  
[debug] e[35m[AndroidDriver]e[39m “androidDeviceSerial”: “2360a49b”,  
[debug] e[35m[AndroidDriver]e[39m “androidProcess”: “com.xmexe.exedevv3”  
[debug] e[35m[AndroidDriver]e[39m }  
[debug] e[35m[AndroidDriver]e[39m Before starting chromedriver, androidPackage is ‘com.android.settings’  
[debug] e[35m[Chromedriver]e[39m Changed state to ‘starting’  
e[35m[Chromedriver]e[39m Set chromedriver binary as: D:\Program Files\node-v12.22.7-win-x86\node\_global\node\_modules\appium\node\_modules\appium-chromedriver\chromedriver\win\chromedriver.exe  
[debug] e[35m[Chromedriver]e[39m Killing any old chromedrivers, running: wmic process where “commandline like ‘%chromedriver.exe%–port=57602%’” delete  
[debug] e[35m[Chromedriver]e[39m Successfully cleaned up old chromedrivers  
[debug] e[35m[Chromedriver]e[39m Cleaning this device’s adb forwarded port socket connections: 2360a49b  
[debug] e[35m[ADB]e[39m List forwarding ports  
[debug] e[35m[ADB]e[39m Running ‘D:\Program Files\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 2360a49b forward --list’  
[debug] e[35m[ADB]e[39m Removing forwarded port socket connection: 55566  
[debug] e[35m[ADB]e[39m Running ‘D:\Program Files\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 2360a49b forward --remove tcp:55566’  
e[35m[Chromedriver]e[39m Spawning chromedriver with: D:\Program Files\node-v12.22.7-win-x86\node\_global\node\_modules\appium\node\_modules\appium-chromedriver\chromedriver\win\chromedriver.exe --url-base=wd/hub --port=57602 --adb-port=5037 --verbose  
[debug] e[35m[Chromedriver]e[39m Chromedriver version: ‘96.0.4664.45’  
[debug] e[35m[WD Proxy]e[39m Matched ‘/status’ to command name ‘getStatus’  
[debug] e[35m[WD Proxy]e[39m Proxying [GET /status] to [GET [http://127.0.0.1:57602/wd/hub/status](http://127.0.0.1:57602/wd/hub/status)] with no body  
e[35m[WD Proxy]e[39m connect ECONNREFUSED 127.0.0.1:57602  
[debug] e[35m[WD Proxy]e[39m Matched ‘/status’ to command name ‘getStatus’  
[debug] e[35m[WD Proxy]e[39m Proxying [GET /status] to [GET [http://127.0.0.1:57602/wd/hub/status](http://127.0.0.1:57602/wd/hub/status)] with no body  
[debug] e[35m[WD Proxy]e[39m Got response with status 200: {“value”:{“build”:{“version”:“96.0.4664.45 (76e4c1bb2ab4671b8beba3444e61c0f17584b2fc-refs/branch-heads/4664@{#947})”},“message”:“ChromeDriver ready for new sessions.”,“os”:{“arch”:“x86\_64”,“name”:“Windows NT”,“version”:“10.0.19042”},“ready”:true}}  
e[35m[Chromedriver]e[39m Starting W3C Chromedriver session with capabilities: {  
e[35m[Chromedriver]e[39m “capabilities”: {  
e[35m[Chromedriver]e[39m “alwaysMatch”: {  
e[35m[Chromedriver]e[39m “goog:chromeOptions”: {  
e[35m[Chromedriver]e[39m “androidPackage”: “com.android.settings”,  
e[35m[Chromedriver]e[39m “androidUseRunningApp”: true,  
e[35m[Chromedriver]e[39m “androidDeviceSerial”: “2360a49b”,  
e[35m[Chromedriver]e[39m “androidProcess”: “com.xmexe.exedevv3”  
e[35m[Chromedriver]e[39m },  
e[35m[Chromedriver]e[39m “goog:loggingPrefs”: {  
e[35m[Chromedriver]e[39m “browser”: “ALL”  
e[35m[Chromedriver]e[39m }  
e[35m[Chromedriver]e[39m }  
e[35m[Chromedriver]e[39m }  
e[35m[Chromedriver]e[39m }  
[debug] e[35m[WD Proxy]e[39m Matched ‘/session’ to command name ‘createSession’  
[debug] e[35m[WD Proxy]e[39m Proxying [POST /session] to [POST [http://127.0.0.1:57602/wd/hub/session](http://127.0.0.1:57602/wd/hub/session)] with body: {“capabilities”:{“alwaysMatch”:{“goog:chromeOptions”:{“androidPackage”:“com.android.settings”,“androidUseRunningApp”:true,“androidDeviceSerial”:“2360a49b”,“androidProcess”:“com.xmexe.exedevv3”},“goog:loggingPrefs”:{“browser”:“ALL”}}}}  
[debug] e[35m[Chromedriver]e[39m Webview version: ‘Chrome/68.0.3440.91’  
2021-11-23 20:08:51.245 ERROR c.k.k.core.keyword.internal.KeywordMain - ❌ Cannot find any WEBVIEW to switch to  
e[35m[WD Proxy]e[39m Got response with status 500: {“value”:{“error”:“session not created”,“message”:“session not created: please close ‘com.xmexe.exedevv3’ and try again”,“stacktrace”:“Backtrace:\n\tOrdinal0 [0x01076903+2517251]\n\tOrdinal0 [0x0100F8E1+2095329]\n\tOrdinal0 [0x00F12848+1058888]\n\tOrdinal0 [0x00F3071B+1181467]\n\tOrdinal0 [0x00F2AED2+1158866]\n\tOrdinal0 [0x00F2A258+1155672]\n\tOrdinal0 [0x00F5AAAF+1354415]\n\tOrdinal0 [0x00F5A71A+1353498]\n\tOrdinal0 [0x00F5639B+1336219]\n\tOrdinal0 [0x00F327A7+1189799]\n\tOrdinal0 [0x00F33609+1193481]\n\tGetHandleVerifier [0x01205904+1577972]\n\tGetHandleVerifier [0x012B0B97+2279047]\n\tGetHandleVerifier [0x01106D09+534521]\n\tGetHandleVerifier [0x01105DB9+530601]\n\tOrdinal0 [0x01014FF9+2117625]\n\tOrdinal0 [0x010198A8+2136232]\n\tOrdinal0 [0x010199E2+2136546]\n\tOrdinal0 [0x01023541+2176321]\n\tBaseThreadInitThunk [0x74F2FA29+25]\n\tRtlGetAppContainerNamedObjectPath [0x76F37A9E+286]\n\tRtlGetAppContainerNamedObjectPath [0x76F37A6E+238]\n”}}  
[debug] e[35m[W3C]e[39m Matched W3C error code ‘session not created’ to SessionNotCreatedError  
[debug] e[35m[Chromedriver]e[39m SessionNotCreatedError: A new session could not be created. Details: session not created: please close ‘com.xmexe.exedevv3’ and try again  
[debug] e[35m[Chromedriver]e[39m at errorFromW3CJsonCode (D:\Program Files\node-v12.22.7-win-x86\node\_global\node\_modules\appium\node\_modules\appium-base-driver\lib\protocol\errors.js:780:25)  
[debug] e[35m[Chromedriver]e[39m at ProxyRequestError.getActualError (D:\Program Files\node-v12.22.7-win-x86\node\_global\node\_modules\appium\node\_modules\appium-base-driver\lib\protocol\errors.js:663:14)  
[debug] e[35m[Chromedriver]e[39m at JWProxy.command (D:\Program Files\node-v12.22.7-win-x86\node\_global\node\_modules\appium\node\_modules\appium-base-driver\lib\jsonwp-proxy\proxy.js:272:19)  
[debug] e[35m[Chromedriver]e[39m at processTicksAndRejections (internal/process/task\_queues.js:97:5)  
[debug] e[35m[Chromedriver]e[39m Changed state to ‘stopped’  
[debug] e[35m[W3C (54317051)]e[39m Encountered internal error running command: Error: A new session could not be created. Details: session not created: please close ‘com.xmexe.exedevv3’ and try again  
[debug] e[35m[W3C (54317051)]e[39m at Object.errorAndThrow (D:\Program Files\node-v12.22.7-win-x86\node\_global\node\_modules\appium\node\_modules\appium-support\lib\logging.js:94:35)  
[debug] e[35m[W3C (54317051)]e[39m at Chromedriver.start (D:\Program Files\node-v12.22.7-win-x86\node\_global\node\_modules\appium\node\_modules\appium-chromedriver\lib\chromedriver.js:541:11)  
[debug] e[35m[W3C (54317051)]e[39m at AndroidUiautomator2Driver.setupNewChromedriver (D:\Program Files\node-v12.22.7-win-x86\node\_global\node\_modules\appium\node\_modules\appium-android-driver\lib\commands\context.js:440:3)  
[debug] e[35m[W3C (54317051)]e[39m at AndroidUiautomator2Driver.startChromedriverProxy (D:\Program Files\node-v12.22.7-win-x86\node\_global\node\_modules\appium\node\_modules\appium-android-driver\lib\commands\context.js:189:10)  
[debug] e[35m[W3C (54317051)]e[39m at AndroidUiautomator2Driver.switchContext (D:\Program Files\node-v12.22.7-win-x86\node\_global\node\_modules\appium\node\_modules\appium-android-driver\lib\commands\context.js:125:5)  
[debug] e[35m[W3C (54317051)]e[39m at AndroidUiautomator2Driver.setContext (D:\Program Files\node-v12.22.7-win-x86\node\_global\node\_modules\appium\node\_modules\appium-android-driver\lib\commands\context.js:60:3)  
e[35m[HTTP]e[39m e[37m\<-- POST /wd/hub/session/54317051-4d8c-4f56-b730-e7c4cb1fddd5/context e[39me[31m500e[39m e[90m1739 ms - 815e[39m  
e[35m[HTTP]e[39m e[90me[39m  
e[35m[HTTP]e[39m e[37m–\>e[39m e[37mGETe[39m e[37m/wd/hub/session/54317051-4d8c-4f56-b730-e7c4cb1fddd5/contexte[39m  
e[35m[HTTP]e[39m e[90m{}e[39m  
[debug] e[35m[W3C (54317051)]e[39m Calling AppiumDriver.getCurrentContext() with args: [“54317051-4d8c-4f56-b730-e7c4cb1fddd5”]  
[debug] e[35m[W3C (54317051)]e[39m Responding to client with driver.getCurrentContext() result: “NATIVE\_APP”  
e[35m[HTTP]e[39m e[37m\<-- GET /wd/hub/session/54317051-4d8c-4f56-b730-e7c4cb1fddd5/context e[39me[32m200e[39m e[90m1 ms - 22e[39m  
e[35m[HTTP]e[39m e[90me[39m  
e[35m[HTTP]e[39m e[37m–\>e[39m e[37mGETe[39m e[37m/wd/hub/session/54317051-4d8c-4f56-b730-e7c4cb1fddd5/contextse[39m  
e[35m[HTTP]e[39m e[90m{}e[39m  
[debug] e[35m[W3C (54317051)]e[39m Calling AppiumDriver.getContexts() with args: [“54317051-4d8c-4f56-b730-e7c4cb1fddd5”]  
[debug] e[35m[AndroidDriver]e[39m Getting a list of available webviews  
[debug] e[35m[ADB]e[39m Running ‘D:\Program Files\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 2360a49b shell cat /proc/net/unix’  
[debug] e[35m[AndroidDriver]e[39m Parsed 1 active devtools socket: ["@webview\_devtools\_remote\_8772"]  
e[35m[AndroidDriver]e[39m Not collecting web view details. Details collection might help to make Chromedriver initialization more precise. Use the ‘enableWebviewDetailsCollection’ cap to turn it on  
[debug] e[35m[AndroidDriver]e[39m Collecting CDP data of 1 webview  
[debug] e[35m[ADB]e[39m Running ‘D:\Program Files\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 2360a49b forward tcp:10900 localabstract:webview\_devtools\_remote\_8772’  
[debug] e[35m[ADB]e[39m Removing forwarded port socket connection: 10900  
[debug] e[35m[ADB]e[39m Running ‘D:\Program Files\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 2360a49b forward --remove tcp:10900’  
[debug] e[35m[AndroidDriver]e[39m CDP data collection completed  
[debug] e[35m[AndroidDriver]e[39m WEBVIEW\_8772 mapped to pid 8772  
[debug] e[35m[AndroidDriver]e[39m Getting process name for webview ‘WEBVIEW\_8772’  
[debug] e[35m[ADB]e[39m Running ‘D:\Program Files\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 2360a49b shell ps -A’  
[debug] e[35m[AndroidDriver]e[39m Got process name: ‘com.xmexe.exedevv3’  
[debug] e[35m[AndroidDriver]e[39m Found 1 webview: [“WEBVIEW\_com.xmexe.exedevv3”]  
[debug] e[35m[AndroidDriver]e[39m Available contexts: [“NATIVE\_APP”,“WEBVIEW\_com.xmexe.exedevv3”]  
[debug] e[35m[W3C (54317051)]e[39m Responding to client with driver.getContexts() result: [“NATIVE\_APP”,“WEBVIEW\_com.xmexe.exedevv3”]  
e[35m[HTTP]e[39m e[37m\<-- GET /wd/hub/session/54317051-4d8c-4f56-b730-e7c4cb1fddd5/contexts e[39me[32m200e[39m e[90m278 ms - 53e[39m  
e[35m[HTTP]e[39m e[90me[39m  
e[35m[HTTP]e[39m e[37m–\>e[39m e[37mPOSTe[39m e[37m/wd/hub/session/54317051-4d8c-4f56-b730-e7c4cb1fddd5/contexte[39m  
e[35m[HTTP]e[39m e[90m{“name”:“NATIVE\_APP”}e[39m  
[debug] e[35m[W3C (54317051)]e[39m Calling AppiumDriver.setContext() with args: [“NATIVE\_APP”,“54317051-4d8c-4f56-b730-e7c4cb1fddd5”]  
[debug] e[35m[W3C (54317051)]e[39m Responding to client with driver.setContext() result: null  
e[35m[HTTP]e[39m e[37m\<-- POST /wd/hub/session/54317051-4d8c-4f56-b730-e7c4cb1fddd5/context e[39me[32m200e[39m e[90m1 ms - 14e[39m  
e[35m[HTTP]e[39m e[90me[39m  
e[35m[HTTP]e[39m e[37m–\>e[39m e[37mGETe[39m e[37m/wd/hub/session/54317051-4d8c-4f56-b730-e7c4cb1fddd5/screenshote[39m  
e[35m[HTTP]e[39m e[90m{}e[39m  
[debug] e[35m[W3C (54317051)]e[39m Calling AppiumDriver.getScreenshot() with args: [“54317051-4d8c-4f56-b730-e7c4cb1fddd5”]  
[debug] e[35m[WD Proxy]e[39m Matched ‘/screenshot’ to command name ‘getScreenshot’  
[debug] e[35m[WD Proxy]e[39m Proxying [GET /screenshot] to [GET [http://127.0.0.1:8242/wd/hub/session/bf406ca8-12a4-44fa-aae5-da5dd111cf13/screenshot](http://127.0.0.1:8242/wd/hub/session/bf406ca8-12a4-44fa-aae5-da5dd111cf13/screenshot)] with no body  
[debug] e[35m[WD Proxy]e[39m Got response with status 200: {“sessionId”:“bf406ca8-12a4-44fa-aae5-da5dd111cf13”,“value”:"iVBORw0KGgoAAAANSUhEUgAABDgAAAjICAYAAAA+Ih/iAAAABHNCSVQICAgIfAhkiAAAIABJREFU\neJzs3WdwXOeZ5v1/R3QjNHImAAIgQYgESDCAQaQokRIp2gqWHOQgy2utZnY8rilv7dZ+mHfe3a19\nq2ZrqmbtqlnPhtqtmpEsW/ZKHlm0AhUpikkMAkmQIAgCBJEz0AgNdKPzeT9gcYYQc5LY9vWrYlFA\nnz7n6aa6q5+r7+d+LIDBNRjGNW8WEREREREREbnrLBbLNW+3fkHjEBERERERERG5axRwiIiIiIiI\niEjCU8AhIiIiIiIiIglPAYeIiIiIiIiIJDwFHCIiIiIiIiKS8BRwiIiIiIiIiEjCU8AhIiIiIiIi\nIglPAYeIiIiIiIiIJDwFHCIiIiIiIiKS8BRwiIiIiIiIiEjCU8AhIiIiIiIiIglPAYeIiIiIiIiI\nJDwFHCIiIiIiIiKS8BRwiIiIiIiIiEjCU8AhIiIiIiIiIglPAYeIiIiIiIiIJDwFHCIiIiIiIiKS\n8BRwiIiIiIiIiEjCU8AhIiIiIiIiIglPAYeIiIiIiIiIJDwFHCIiIiIiIiKS8BRwiIi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8BRwiIiIiIiIiEjCU8AhIiIiIiIiIglP\nAYeIiIiIiIiIJDwFHCIiIiIiIiKS8BRwiIiIiIiIiEjCU8AhIiIiIiIiIglPAYeIiIiIiIiIJDwF\nHCIiIiIiIiKS8BRwiIiIiIiIiEjCU8AhIiIiIiIiIglPAYeIiIiIiIiIJDwFHCIiIiIiIiKS8BRw\niIiIiIiIiEjCU8AhIiIiIiIiIglPAYeIiIiIiIiIJDwFHCIiIiIiIiKS8BRwiIiIiIiIiEjCU8Ah\nIiIiIiIiIgnP/mUPQERERERERP54hEIh/H4/wWCQYDBIKBQiHo8Ti8UwDAObzYbVasXhcOB2u3G5\nXCQnJ+…  
e[35m[HTTP]e[39m e[37m\<-- GET /wd/hub/session/54317051-4d8c-4f56-b730-e7c4cb1fddd5/screenshot e[39me[32m200e[39m e[90m446 ms - 240960e[39m  
e[35m[HTTP]e[39m e[90me[39m  
e[35m[HTTP]e[39m e[37m–\>e[39m e[37mPOSTe[39m e[37m/wd/hub/session/54317051-4d8c-4f56-b730-e7c4cb1fddd5/contexte[39m  
e[35m[HTTP]e[39m e[90m{“name”:“NATIVE\_APP”}e[39m  
[debug] e[35m[W3C (54317051)]e[39m Calling AppiumDriver.setContext() with args: [“NATIVE\_APP”,“54317051-4d8c-4f56-b730-e7c4cb1fddd5”]  
[debug] e[35m[W3C (54317051)]e[39m Responding to client with driver.setContext() result: null  
e[35m[HTTP]e[39m e[37m\<-- POST /wd/hub/session/54317051-4d8c-4f56-b730-e7c4cb1fddd5/context e[39me[32m200e[39m e[90m1 ms - 14e[39m  
e[35m[HTTP]e[39m e[90me[39m  
e[35m[HTTP]e[39m e[37m–\>e[39m e[37mGETe[39m e[37m/wd/hub/session/54317051-4d8c-4f56-b730-e7c4cb1fddd5/contexte[39m  
e[35m[HTTP]e[39m e[90m{}e[39m  
[debug] e[35m[W3C (54317051)]e[39m Calling AppiumDriver.getCurrentContext() with args: [“54317051-4d8c-4f56-b730-e7c4cb1fddd5”]  
[debug] e[35m[W3C (54317051)]e[39m Responding to client with driver.getCurrentContext() result: “NATIVE\_APP”  
e[35m[HTTP]e[39m e[37m\<-- GET /wd/hub/session/54317051-4d8c-4f56-b730-e7c4cb1fddd5/context e[39me[32m200e[39m e[90m1 ms - 22e[39m  
e[35m[HTTP]e[39m e[90me[39m  
e[35m[HTTP]e[39m e[37m–\>e[39m e[37mGETe[39m e[37m/wd/hub/session/54317051-4d8c-4f56-b730-e7c4cb1fddd5/contextse[39m  
e[35m[HTTP]e[39m e[90m{}e[39m  
[debug] e[35m[W3C (54317051)]e[39m Calling AppiumDriver.getContexts() with args: [“54317051-4d8c-4f56-b730-e7c4cb1fddd5”]  
[debug] e[35m[AndroidDriver]e[39m Getting a list of available webviews  
[debug] e[35m[ADB]e[39m Running ‘D:\Program Files\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 2360a49b shell cat /proc/net/unix’  
2021-11-23 20:08:52.025 ERROR c.k.k.core.keyword.internal.KeywordMain - ❌ Unable to switch the driver to WEBVIEW mode (Root cause: com.kms.katalon.core.exception.StepFailedException: Cannot find any WEBVIEW to switch to  
at com.kms.katalon.core.keyword.internal.KeywordMain.stepFailed(KeywordMain.groovy:50)  
at com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.stepFailed(MobileKeywordMain.groovy:40)  
at com.kms.katalon.core.mobile.keyword.builtin.SwitchToWebViewKeyword$\_switchToWebView\_closure1.doCall(SwitchToWebViewKeyword.groovy:74)  
at com.kms.katalon.core.mobile.keyword.builtin.SwitchToWebViewKeyword$\_switchToWebView\_closure1.call(SwitchToWebViewKeyword.groovy)  
at com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.runKeyword(MobileKeywordMain.groovy:21)  
at com.kms.katalon.core.mobile.keyword.builtin.SwitchToWebViewKeyword.switchToWebView(SwitchToWebViewKeyword.groovy:67)  
at com.kms.katalon.core.mobile.keyword.builtin.SwitchToWebViewKeyword.execute(SwitchToWebViewKeyword.groovy:62)  
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:74)  
at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords.switchToWebView(MobileBuiltInKeywords.groovy:1818)  
at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords$switchToWebView$0.call(Unknown Source)  
at Login\_WebView.run(Login\_WebView:44)  
at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)  
at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)  
at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:430)  
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:421)  
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:400)  
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:392)  
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:273)  
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:142)  
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:133)  
at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source)  
at TempTestCase1637669305123.run(TempTestCase1637669305123.groovy:25)  
)  
2021-11-23 20:08:52.027 DEBUG testcase.Login\_WebView - 4: Finally  
2021-11-23 20:08:52.029 DEBUG testcase.Login\_WebView - 1: closeApplication()  
2021-11-23 20:08:52.291 ERROR c.k.katalon.core.main.TestCaseExecutor - ❌ Test Cases/Mobile/Login\_WebView FAILED.  
Reason:  
com.kms.katalon.core.exception.StepFailedException: Cannot find any WEBVIEW to switch to  
at com.kms.katalon.core.keyword.internal.KeywordMain.stepFailed(KeywordMain.groovy:50)  
at com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.stepFailed(MobileKeywordMain.groovy:40)  
at com.kms.katalon.core.mobile.keyword.builtin.SwitchToWebViewKeyword$\_switchToWebView\_closure1.doCall(SwitchToWebViewKeyword.groovy:74)  
at com.kms.katalon.core.mobile.keyword.builtin.SwitchToWebViewKeyword$\_switchToWebView\_closure1.call(SwitchToWebViewKeyword.groovy)  
at com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.runKeyword(MobileKeywordMain.groovy:21)  
at com.kms.katalon.core.mobile.keyword.builtin.SwitchToWebViewKeyword.switchToWebView(SwitchToWebViewKeyword.groovy:67)  
at com.kms.katalon.core.mobile.keyword.builtin.SwitchToWebViewKeyword.execute(SwitchToWebViewKeyword.groovy:62)  
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:74)  
at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords.switchToWebView(MobileBuiltInKeywords.groovy:1818)  
at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords$switchToWebView$0.call(Unknown Source)  
at Login\_WebView.run(Login\_WebView:44)  
at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)  
at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)  
at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:430)  
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:421)  
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:400)  
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:392)  
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:273)  
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:142)  
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:133)  
at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source)  
at TempTestCase1637669305123.run(TempTestCase1637669305123.groovy:25)

2021-11-23 20:08:52.295 INFO c.k.katalon.core.main.TestCaseExecutor - END Test Cases/Mobile/Login\_WebView  
[debug] e[35m[AndroidDriver]e[39m Parsed 1 active devtools socket: ["@webview\_devtools\_remote\_8772"]  
e[35m[AndroidDriver]e[39m Not collecting web view details. Details collection might help to make Chromedriver initialization more precise. Use the ‘enableWebviewDetailsCollection’ cap to turn it on  
[debug] e[35m[AndroidDriver]e[39m Collecting CDP data of 1 webview  
[debug] e[35m[ADB]e[39m Running ‘D:\Program Files\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 2360a49b forward tcp:10900 localabstract:webview\_devtools\_remote\_8772’  
[debug] e[35m[ADB]e[39m Removing forwarded port socket connection: 10900  
[debug] e[35m[ADB]e[39m Running ‘D:\Program Files\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 2360a49b forward --remove tcp:10900’  
[debug] e[35m[AndroidDriver]e[39m CDP data collection completed  
[debug] e[35m[AndroidDriver]e[39m WEBVIEW\_8772 mapped to pid 8772  
[debug] e[35m[AndroidDriver]e[39m Getting process name for webview ‘WEBVIEW\_8772’  
[debug] e[35m[ADB]e[39m Running ‘D:\Program Files\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 2360a49b shell ps -A’  
[debug] e[35m[AndroidDriver]e[39m Got process name: ‘com.xmexe.exedevv3’  
[debug] e[35m[AndroidDriver]e[39m Found 1 webview: [“WEBVIEW\_com.xmexe.exedevv3”]  
[debug] e[35m[AndroidDriver]e[39m Available contexts: [“NATIVE\_APP”,“WEBVIEW\_com.xmexe.exedevv3”]  
[debug] e[35m[W3C (54317051)]e[39m Responding to client with driver.getContexts() result: [“NATIVE\_APP”,“WEBVIEW\_com.xmexe.exedevv3”]  
e[35m[HTTP]e[39m e[37m\<-- GET /wd/hub/session/54317051-4d8c-4f56-b730-e7c4cb1fddd5/contexts e[39me[32m200e[39m e[90m290 ms - 53e[39m  
e[35m[HTTP]e[39m e[90me[39m  
e[35m[HTTP]e[39m e[37m–\>e[39m e[37mPOSTe[39m e[37m/wd/hub/session/54317051-4d8c-4f56-b730-e7c4cb1fddd5/contexte[39m  
e[35m[HTTP]e[39m e[90m{“name”:“NATIVE\_APP”}e[39m  
[debug] e[35m[W3C (54317051)]e[39m Calling AppiumDriver.setContext() with args: [“NATIVE\_APP”,“54317051-4d8c-4f56-b730-e7c4cb1fddd5”]  
[debug] e[35m[W3C (54317051)]e[39m Responding to client with driver.setContext() result: null  
e[35m[HTTP]e[39m e[37m\<-- POST /wd/hub/session/54317051-4d8c-4f56-b730-e7c4cb1fddd5/context e[39me[32m200e[39m e[90m1 ms - 14e[39m  
e[35m[HTTP]e[39m e[90me[39m  
e[35m[HTTP]e[39m e[37m–\>e[39m e[37mGETe[39m e[37m/wd/hub/session/54317051-4d8c-4f56-b730-e7c4cb1fddd5/screenshote[39m  
e[35m[HTTP]e[39m e[90m{}e[39m  
[debug] e[35m[W3C (54317051)]e[39m Calling AppiumDriver.getScreenshot() with args: [“54317051-4d8c-4f56-b730-e7c4cb1fddd5”]  
[debug] e[35m[WD Proxy]e[39m Matched ‘/screenshot’ to command name ‘getScreenshot’  
[debug] e[35m[WD Proxy]e[39m Proxying [GET /screenshot] to [GET [http://127.0.0.1:8242/wd/hub/session/bf406ca8-12a4-44fa-aae5-da5dd111cf13/screenshot](http://127.0.0.1:8242/wd/hub/session/bf406ca8-12a4-44fa-aae5-da5dd111cf13/screenshot)] with no body  
[debug] e[35m[WD Proxy]e[39m Got response with status 200: {“sessionId”:“bf406ca8-12a4-44fa-aae5-da5dd111cf13”,“value”:"iVBORw0KGgoAAAANSUhEUgAABDgAAAjICAYAAAA+Ih/iAAAABHNCSVQICAgIfAhkiAAAIABJREFU\neJzs3WdwXOeZ5v1/R3QjNHImAAIgQYgESDCAQaQokRIp2gqWHOQgy2utZnY8rilv7dZ+mHfe3a19\nq2ZrqmbtqlnPhtqtmpEsW/ZKHlm0AhUpikkMAkmQIAgCBJEz0AgNdKPzeT9gcYYQc5LY9vWrYlFA\nnz7n6aa6q5+r7+d+LIDBNRjGNW8WEREREREREbnrLBbLNW+3fkHjEBERERERERG5axRwiIiIiIiI\niEjCU8AhIiIiIiIiIglPAY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\nIglPAYeIiIiIiIiIJDwFHCIiIiIiIiKS8BRwiIiIiIiIiEjCU8AhIiIiIiIiIglPAYeIiIiIiIiI\nJDwFHCIiIiIiIiKS8BRwiIiIiIiIiEjCU8AhIiIiIiIiIglPAYeIiIiIiIiIJDwFHCIiIiIiIiKS\n8BRwiIiIiIiIiEjCU8AhIiIiIiIiIglPAYeIiIiIiIiIJDwFHCIiIiIiIiKS8BRwiIiIiIiIiEjC\nU8AhIiIiIiIiIglPAYeIiIiIiIiIJDwFHCIiIiIiIiKS8BRwiIiIiIiIiEjCU8AhIiIiIiIiIglP\nAYeIiIiIiIiIJDwFHCIiIiIiIiKS8BRwiIiIiIiIiEjCU8AhIiIiIiIiIglPAYeIiIiIiIiIJDwF\nHCIiIiIiIiKS8BRwiIiIiIiIiEjCU8AhIiIiIiIiIglPAYeIiIiIiIiIJDwFHCIiIiIiIiKS8BRw\niIiIiIiIiEjCU8AhIiIiIiIiIglPAYeIiIiIiIiIJDwFHCIiIiIiIiKS8BRwiIiIiIiIiEjCU8Ah\nIiIiIiIiIgnP/mUPQERERERERP54hEIh/H4/wWCQYDBIKBQiHo8Ti8UwDAObzYbVasXhcOB2u3G5\nXCQnJ+…  
e[35m[HTTP]e[39m e[37m\<-- GET /wd/hub/session/54317051-4d8c-4f56-b730-e7c4cb1fddd5/screenshot e[39me[32m200e[39m e[90m425 ms - 240960e[39m  
e[35m[HTTP]e[39m e[90me[39m  
e[35m[HTTP]e[39m e[37m–\>e[39m e[37mPOSTe[39m e[37m/wd/hub/session/54317051-4d8c-4f56-b730-e7c4cb1fddd5/contexte[39m  
e[35m[HTTP]e[39m e[90m{“name”:“NATIVE\_APP”}e[39m  
[debug] e[35m[W3C (54317051)]e[39m Calling AppiumDriver.setContext() with args: [“NATIVE\_APP”,“54317051-4d8c-4f56-b730-e7c4cb1fddd5”]  
[debug] e[35m[W3C (54317051)]e[39m Responding to client with driver.setContext() result: null  
e[35m[HTTP]e[39m e[37m\<-- POST /wd/hub/session/54317051-4d8c-4f56-b730-e7c4cb1fddd5/context e[39me[32m200e[39m e[90m2 ms - 14e[39m  
e[35m[HTTP]e[39m e[90me[39m  
e[35m[HTTP]e[39m e[37m–\>e[39m e[37mDELETEe[39m e[37m/wd/hub/session/54317051-4d8c-4f56-b730-e7c4cb1fddd5e[39m  
e[35m[HTTP]e[39m e[90m{}e[39m  
[debug] e[35m[W3C (54317051)]e[39m Calling AppiumDriver.deleteSession() with args: [“54317051-4d8c-4f56-b730-e7c4cb1fddd5”]  
[debug] e[35m[BaseDriver]e[39m Event ‘quitSessionRequested’ logged at 1637669332049 (20:08:52 GMT+0800 (GMT+08:00))  
e[35m[Appium]e[39m Removing session 54317051-4d8c-4f56-b730-e7c4cb1fddd5 from our master session list  
[debug] e[35m[UiAutomator2]e[39m Deleting UiAutomator2 session  
[debug] e[35m[UiAutomator2]e[39m Deleting UiAutomator2 server session  
[debug] e[35m[WD Proxy]e[39m Matched ‘/’ to command name ‘deleteSession’  
[debug] e[35m[WD Proxy]e[39m Proxying [DELETE /] to [DELETE [http://127.0.0.1:8242/wd/hub/session/bf406ca8-12a4-44fa-aae5-da5dd111cf13](http://127.0.0.1:8242/wd/hub/session/bf406ca8-12a4-44fa-aae5-da5dd111cf13)] with no body  
[debug] e[35m[WD Proxy]e[39m Got response with status 200: {“sessionId”:“bf406ca8-12a4-44fa-aae5-da5dd111cf13”,“value”:null}  
[debug] e[35m[ADB]e[39m Running ‘D:\Program Files\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 2360a49b shell am force-stop com.android.settings’  
[debug] e[35m[Logcat]e[39m Stopping logcat capture  
[debug] e[35m[ADB]e[39m Removing forwarded port socket connection: 8242  
[debug] e[35m[ADB]e[39m Running ‘D:\Program Files\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 2360a49b forward --remove tcp:8242’  
[debug] e[35m[BaseDriver]e[39m Event ‘quitSessionFinished’ logged at 1637669332208 (20:08:52 GMT+0800 (GMT+08:00))  
[debug] e[35m[W3C (54317051)]e[39m Received response: null  
[debug] e[35m[W3C (54317051)]e[39m But deleting session, so not returning  
[debug] e[35m[W3C (54317051)]e[39m Responding to client with driver.deleteSession() result: null  
e[35m[HTTP]e[39m e[37m\<-- DELETE /wd/hub/session/54317051-4d8c-4f56-b730-e7c4cb1fddd5 e[39me[32m200e[39m e[90m160 ms - 14e[39m  
e[35m[HTTP]e[39m e[90me[39m

---

<div class="post-metadata">

**Author:** ![zawawimanja](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/zawawimanja/32/16103_2.png) [@zawawimanja](https://forum.katalon.com/u/zawawimanja)\
**Post date:** [November 13, 2023, 8:14am UTC](https://forum.katalon.com/t/cannot-find-any-webview-to-switch-to/60293/2 "2023-11-13T08:14:10Z")

</div>

my problem right now the apps will redirect to webview but it will not open in browser. so it will get this error when try to swith for webview.
