Now Im using selenium version 4.8.1
With the following Code:
var ieOptions = new InternetExplorerOptions { };
ieOptions.AttachToEdgeChrome = true;
ieOptions.IntroduceInstabilityByIgnoringProtectedModeSettings= true;
WebDriver driver = new InternetExplorerDriver(ieOptions);
driver.Navigate().GoToUrl("https://bing.com");
driver.FindElement(By.Id("sb_form_q")).SendKeys("Hello world");
driver.FindElement(By.Id("sb_form")).Submit();
When I run the code, the program stops and timeouts after 60 seconds at the line
driver.Navigate().GoToUrl("https://bing.com");
I have consulted a few ways and I got it working when I turned off protected mode in internet options. Is there a way for me to not have to turn off protected mode in internet options and still be able to run normally?