How can we set IE browser setting through Remote Web Driver

41 views
Skip to first unread message

Satender Rawat

unread,
Jul 6, 2015, 7:57:33 AM7/6/15
to seleniu...@googlegroups.com
HI All.

 I am trying to set IE property like (Add a entry under Local Intranet Site), till now i am able to access a site from Linux box to Windows box IE using Remote Web Driver. 
  below is my code snippet for achieving access a resource through Remote Web Driver:

 ************************************************************************************************
    URL url = new URL("http", "some Host IP", 4444, "/wd/hub");

    DesiredCapabilities capabilities = DesiredCapabilities.internetExplorer();

    System.out.println("1");

    System.out.println("2");

    WebDriver driver = new RemoteWebDriver(url, capabilities);

    driver.manage().timeouts().implicitlyWait( 60, TimeUnit.SECONDS );
    System.out.println("4");
    driver.get(site);
    System.out.println(driver.getTitle());
    driver.close();
    driver.quit();
***************************************************************************************************

Thanks,
Satender Rawat

Jim Evans

unread,
Jul 6, 2015, 6:23:44 PM7/6/15
to seleniu...@googlegroups.com
Repeating the answer I gave to the same question two days ago, since you've insisted on asking the question again:

Short answer: you can't. The IE driver won't add or remove URLs to the various Protected Mode zones on a machine. Sorry. You'll need to do it manually on the remote machine.

Usually, there are only a couple of reasons to want to do this. One is to avoid Protected Mode issues, in which case, you need to manually set the Protected Mode settings on the target mama chine.

The other reason is that you want to use a self-signed SSL certificate, and want to avoid IE's interstitial "the certificate for the site is invalid" page. Your options there are, from least-to-most reliable, automate clicking the override link on the interstitial page, add the certificate to the trusted cert store on the remote machine, or use a proxy to decrypt the SSL traffic for you. Note that these limitations are caused by the browser, not the driver, so blaming the IE driver for the shortcoming would be misplacing your ire.

Sridhar U

unread,
Jul 7, 2015, 12:24:59 AM7/7/15
to seleniu...@googlegroups.com
you can use the vbscript file which will update the registry with the desired features in IE. It's been a while that I have done this. Still you can give a try and let me know if need any help.

Sridhar U

Kaleem Uddin Mohammed Abdul

unread,
Jul 12, 2015, 2:39:21 AM7/12/15
to seleniu...@googlegroups.com
Hi Sridhar,

I'm new to Selenium, I just started working on selenium from June. I would like to know how can I install Selenium Grid using C#, I found in seleniumhq.org the steps only using .jar file. As I don't have Java software on my machine, I would like to set up selenium Grid using dlls. Do you know how to do it?

Krishnan Mahadevan

unread,
Jul 12, 2015, 2:41:47 AM7/12/15
to Selenium Users
As I mentioned in the other thread, Grid2 is available only in Java (atleast to the best of my knowledge). So you would need to install Java and then have the Grid Hub and node brought up via the corresponding Jar files.

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/8ab62255-6783-45df-a116-5bd16a2fd29a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages