Forum Discussion

creativechoi's avatar
creativechoi
Copper Contributor
Jul 21, 2022

How can we control Edge Web Browser Using .NET Framework??

All,

 

I'm using C#.

I used to control IE by utilizing SHDocVw defined through the mshtml engine.
However, we have to use Edge following the termination of the Internet Explorer (IE) service.

 

I would like to know how to run it in debuggnig mode using Selenium EdgeDriver.

what should I do?

The UseChrome option does not work with Edge Driver version updated to 4.0.
Help me.

 

-- sample code --

private void MenuItem_Click(object sender, EventArgs e)

{

     InternetExplorer ie = new InternetExplorer();

     IWebBrowserApp webBrowser = (IWebBrowserApp)ie;

     webBrowser.Visible=true;

     webBrowser.Natigate("URL");

}

 

Resources