I need to launch the Microsoft Edge browser with a specific URL from ac# application. How can I do that? What's the best way to retrieve the path where Microsoft Edge is installed and call it passing the appropriate arguments? I would like to launch it directly without installing any webdriver.
I saw this How to open URL in Microsoft Edge from the command line? but couldn't make it work from code.
Thanks.
I figured that out.
You can call the browser by using microsoft-edge:http://www.yoursite.com
from the command line.
Process.Start("microsoft-edge:http://www.yourpage.co.uk");
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.