# Unable to Switch Context to WebView

**URL:** <https://discuss.appium.io/t/unable-to-switch-context-to-webview/38162>\
**Category:** Issues/Bugs\
**Created:** [December 31, 2022, 2:29pm UTC](https://discuss.appium.io/t/unable-to-switch-context-to-webview/38162 "2022-12-31T14:29:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MAKALEEM1986](https://discuss.appium.io/user_avatar/discuss.appium.io/makaleem1986/32/10883_2.png) [@MAKALEEM1986](https://discuss.appium.io/u/MAKALEEM1986)\
**Post date:** [December 31, 2022, 2:29pm UTC](https://discuss.appium.io/t/unable-to-switch-context-to-webview/38162/1 "2022-12-31T14:29:08Z")

</div>

We have different WebView workflows for our App. I’m able to switch context for the Workflows which has contexts NATIVE\_APP, WEBVIEW\_com.bluebird.mobile and WEBVIEW\_Terrace (3 contexts),  
And not able to switch context for the workflows which has only two context NATIVE\_APP and WEBVIEW\_Terrace. While switching the context … I get below error

Appium error: An unknown server-side error occurred while processing the command. Original error: An unknown server-side error occurred while processing the command. Original error: unknown error: Failed to get sockets matching: @weblayer\_devtools\_remote\_.\*14722

(make sure the app has its WebView/WebLayer configured for debugging)

(Driver info: chromedriver=105.0.5195.52 (412c95e518836d8a7d97250d62b29c2ae6a26a85-refs/branch-heads/5195@{#853}),platform=Linux 5.16.7-200.fc35.x86\_64 x86\_64)

When I look on the internet for the error “make sure the app has its WebView/WebLayer configured for debugging”, I see solution to set **setWebContentsDebuggingEnabled** to true and we already set this configuration because some of the workflows are working.

Please let me know what i need to do here? OR what can I ask my DEV team to fix this.
