I have some C# Selenium code that does this -- simply finds an element on a page and clicks on it:
var wait = new WebDriverWait(driver, [url removed, login to view](30000));
driver = new InternetExplorerDriver();
[url removed, login to view]().GoToUrl(strMyUrl);
[url removed, login to view]([url removed, login to view]([url removed, login to view](strMyID)));
[url removed, login to view](strMyID).Click();
However, the element identified by "strMyID" launches a pop-up window, and Internet Explorer by default displays a dialog saying the pop-up has been blocked, instead of launching the window.
We cannot pre-configure Internet Explorer to turn off the pop-up blocker on all the machines where this is going to run, so we need to launch it programmatically with the pop-up blocker turned off.
Someone says they found a way to do it in Selenium with java, and if it can be done in java then I assume it can be done in C#:
[url removed, login to view]
but I tried using similar code in C#, adding these lines at the beginning of my code above:
InternetExplorerOptions options = new InternetExplorerOptions();
[url removed, login to view]("disable-popup-blocking", true);
driver = new InternetExplorerDriver(options);
and that did not work.
(If you do find a solution, please test it and confirm that it works, before submitting it as a solution. If you send me something saying "Have you tried this?", my first question is going to be, "Have YOU tried it?" :) If you have an idea for code that will fix it, there are numerous websites you can test it out on where clicking a link will open a pop-up window, or you can make a simple one.)
(Also, if you bid, please put something in the bid to indicate that you actually read and understood the request. If a bid request just says "We are a C# dev shop that has done many jobs and we can meet your needs" I'm going to assume you're just spamming "bids" and didn't necessarily read the project description.)