# Problem with Context Switch in Ms Edge Browser

**URL:** <https://discuss.appium.io/t/problem-with-context-switch-in-ms-edge-browser/46015>\
**Category:** Issues/Bugs\
**Created:** [October 2, 2025, 11:25am UTC](https://discuss.appium.io/t/problem-with-context-switch-in-ms-edge-browser/46015 "2025-10-02T11:25:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chowdary\_2477](https://discuss.appium.io/user_avatar/discuss.appium.io/chowdary_2477/32/14359_2.png) [@chowdary\_2477](https://discuss.appium.io/u/chowdary_2477)\
**Post date:** [October 2, 2025, 11:25am UTC](https://discuss.appium.io/t/problem-with-context-switch-in-ms-edge-browser/46015/1 "2025-10-02T11:25:31Z")

</div>

Hi Team  
We’re using Microsoft Edge on Android and need to switch the context from the WebView.

Please find the attached Log file for logs.

**Facing following Error:**

 ![Screenshot 2025-10-02 at 10.23.13](https://discuss.appium.io/uploads/default/original/2X/1/16fcab86bc5081f03f958ad7abc9581a93ba60e2.png)

> ****
>
> [Log.txt](https://discuss.appium.io/uploads/short-url/zqTocpAdJVnqvCSTu0ChnwfQiO9.txt) (73.7 KB)

**In App code it is already set to true:**  
WebView.setWebContentsDebuggingEnabled(true)

**Following are the used capabilities:**

{  
“platformName”: “Android”,  
“appium:platformVersion”: “14”,  
“appium:userProfile”: 10,  
“appium:autoGrantPermissions”: true,  
“appium:chromedriver\_autodownload”: true,  
“appium:appWaitDuration”: 30000,  
“appium:appWaitForLaunch”: false,  
“appium:unlockStrategy”: “uiautomator”,  
“appium:automationName”: “UIAutomator2”,  
“appium:appActivity”: “.MainActivity”,  
“appium:appPackage”: “.package”,  
“appium:noReset”: true,  
“appium:ensureWebviewsHavePages”: true,  
“appium:enableWebviewDetailsCollection”: true,  
“appium:webviewConnectTimeout”: 20000  
}

In Appium Inspector available contexts are shown as following

Native\_App

WEBVIEW\_chrome

When the is inspected with it shows the following:

 ![Screenshot 2025-10-02 at 13.16.28](https://discuss.appium.io/uploads/default/original/2X/9/9e30f292703914479138eac67e06bb770b7c3b5f.png)

Looking forward if any one has faced the same problem and got a solution with context switch in Edge browser

---

<div class="post-metadata">

**Author:** ![mykola-mokhnach](https://discuss.appium.io/user_avatar/discuss.appium.io/mykola-mokhnach/32/4578_2.png) [@mykola-mokhnach](https://discuss.appium.io/u/mykola-mokhnach)\
**Post date:** [October 3, 2025, 2:44pm UTC](https://discuss.appium.io/t/problem-with-context-switch-in-ms-edge-browser/46015/2 "2025-10-03T14:44:25Z")

</div>

Are you able to debug this web view manually via chrome remote debugger? It might be that chromedriver simply does not support edge-based web views and needs a dedicated android driver.

---

<div class="post-metadata">

**Author:** ![chowdary\_2477](https://discuss.appium.io/user_avatar/discuss.appium.io/chowdary_2477/32/14359_2.png) [@chowdary\_2477](https://discuss.appium.io/u/chowdary_2477)\
**Post date:** [October 7, 2025, 1:53pm UTC](https://discuss.appium.io/t/problem-with-context-switch-in-ms-edge-browser/46015/3 "2025-10-07T13:53:49Z")

</div>

Thank you for the reply @mykola-mokhnach

Yes i was able to debug using chrome://inspect and can view the id’s

---

<div class="post-metadata">

**Author:** ![mykola-mokhnach](https://discuss.appium.io/user_avatar/discuss.appium.io/mykola-mokhnach/32/4578_2.png) [@mykola-mokhnach](https://discuss.appium.io/u/mykola-mokhnach)\
**Post date:** [October 7, 2025, 6:39pm UTC](https://discuss.appium.io/t/problem-with-context-switch-in-ms-edge-browser/46015/4 "2025-10-07T18:39:00Z")

</div>

If you are able to connect manually then the issue might be in chromedriver itself. Try reporting the issue to Google and ask them whether this driver officially supports edge or if they don’t support it.
