Problem with Context Switch in Ms Edge Browser

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:

Log.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:

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

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.

Thank you for the reply @mykola-mokhnach

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

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.