En cours

write C# Selenium code that launches Internet Explorer with pop-up blocking turned off

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.)

Compétences : Programmation C#

Voir plus : delphi internet radio source code, vb6 internet control source code, internet project source code, internet radio ios code, internet traffic url code project, block internet access source code, internet cafe software code, internet banking html code, iphone internet radio source code, vb6 internet transfer control code, sending sms internet web application code, software write mq4, software write chip epson, useful software write book, software write web specs, auto internet auto vote code, test internet speed php code samples, free software write user guide, software write edid, free software write company profile, software write websites idea, call internet modem vb6 code, software write book images, software write books, software write protection

Concernant l'employeur :
( 128 commentaires ) Bellevue, United States

N° du projet : #12647704

Décerné à :

sachavukic

Hello, it seems it's not possible to disable the popup blocker because it's directly managed by windows (and not IE), except if you modify the registry (using c# or manually). As you certainly know, the registry Plus

25 $ USD en 1 jour
(3 Commentaires)
2.0

7 freelance ont fait une offre moyenne de 34 $ pour ce travail

35 $ USD en 1 jour
(5 Commentaires)
3.9
theblue8488

hi, i am a senior software engineer with more 10 years experiences in c#, asp.net, i can study and help you to resolve your tasks

30 $ USD en 5 jours
(8 Commentaires)
2.7
MetaoriginLab

A proposal has not yet been provided

40 $ USD en 5 jours
(0 Commentaires)
0.0
sypsoo

Hello client. I am talent c#. we can discuss about task. please send me message. thanks. Best Regards

50 $ USD en 1 jour
(0 Commentaires)
0.0
asadiqbalse

Dear Sir/Madam, We already worked on this and ready to start the development after checking out the project details. We are specialized in web development, web design, mobile app development, Graphics Design, E-comm Plus

30 $ USD en 1 jour
(0 Commentaires)
0.0
25 $ USD en 10 jours
(0 Commentaires)
0.0