I am facing an issue when I am running my C# Selenium Code to Open a web page. It is a simple program to open a webpage in IE Browser. The code is perfectly working in VS. I have Scheduled as task using Windows Task Scheduler. It is opening the webpage with local host URL but not the URL I am expected to navigate(for eg: www.google.com). After 60 seconds, I am getting error HTTP request to remote web driver server for URL http://localhost:/session time out after 60 seconds.
InternetExplorerOptions Options = new InternetExplorerOptions();
Options.AttachToEdgeChrome = true;
IWebDriver Driver = new InternetExplorerDriver(Options); //This is the line failing.
Could you please guide me what's wrong?
I am expecting the Windows Task Scheduler - Task should open and load URL Expected.
Please try with this.