-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Description
Every time I try to launch IEDriver it crashes with following error in log file:
W 2015-04-01 14:21:54:994 BrowserFactory.cpp(269) -2147467259 [Unspecified error]: Unable to convert document object pointer to IHTMLDocument2 object via ObjectFromLresult
Am launching IEDriver as shown below
InternetExplorerDriverService ieservice = InternetExplorerDriverService.CreateDefaultService(@"C:\Program Files\IEDriverServer");
ieservice.LoggingLevel = InternetExplorerDriverLogLevel.Trace;
ieservice.LogFile = "C:\TEMP\iedriverserver.log";
InternetExplorerOptions options = new InternetExplorerOptions();
options.IgnoreZoomLevel = true;
options.IntroduceInstabilityByIgnoringProtectedModeSettings = true;
options.ElementScrollBehavior =
options.IgnoreZoomLevel = true;
driver = new InternetExplorerDriver(ieservice, options, TimeSpan.FromMinutes(5));
Selenium version: 2.45.0
OS: Windows 7
Browser: IE7