Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Selenium C# Webdriver IE11 issues

I am struggling through what appear to be issues with WebDriver properly interacting with the Internet Explorer Server (IE11). I have quite a number of tests already authored and working in Chrome but when I try to run the exact same tests using the latest IE Driver server (2.46.0 - downloaded from http://www.seleniumhq.org/download/)

I have read a number of articles on setting up a registry entries and adding my site to the list of trusted sites to to possibly handle a few of these issues but I have been un-successful (Selenium WebDriver on IE11)

Within the page above, one of the responses links to a Microsoft site for downloading IE Web Driver for IE 11 (http://www.microsoft.com/en-us/download/details.aspx?id=44069), this link wants to download and install something.

My question: Is there a difference in the WebDriver from the Selenium site versus the MS site?

Thanks Sean

like image 222
Stiley Avatar asked Nov 10 '22 09:11

Stiley


1 Answers

Try disabling the native event for IE shown as follows

var options = new InternetExplorerOptions { EnableNativeEvents = false };
options.AddAdditionalCapability("disable-popup-blocking", true);
Driver = new InternetExplorerDriver(options);

Also, DesireCapabilities expands the ability of controlling driver instance more.

like image 93
Saifur Avatar answered Nov 14 '22 23:11

Saifur