Srishti
Srishti

Reputation: 51

how to run selenium rc test case in Internet Explorer

My selenium RC java code is running successfully on firefox. Can anyone tell me how to run the same test case on internet explorer?

Upvotes: 2

Views: 12575

Answers (5)

user2841770
user2841770

Reputation: 11

If you hit the Script error while running tests on IE with selenium RC, it might be because of not running the selenium server with Administrator privileges. I had the similar issue and could get it running with by running the selenium server as an Administrator

Upvotes: 1

user2319033
user2319033

Reputation: 1

In order to work the scripts on IE do the following steps

1.Navigate to ToolsInternet OptionsSecurityTrusted Sites

2.Click on “Sites” button and add the Urls of the application you are testing in “Add this website to the zone:” and clicking on “Add” button.

3.Navigate to ToolsInternet OptionsSecurity and disable the checkbox “Enable Protected Mode (requires restarting Internet Explorer)” and click on “Apply” and click “Ok”.

  1. a. Navigate to ToolsInternet OptionsSecurity b. Add all the URL’s of your application in the “Address of websites to allow” and click on “Add” button.

  2. Navigate to ToolsInternet OptionsAdvanced options. Scroll down to the Security section, and select Allow active content to run in files on my computer. This will get rid of the pesky toolbar alert, and allow JavaScript to run automatically.

Upvotes: 0

Ripon Al Wasim
Ripon Al Wasim

Reputation: 37766

Very simple: Use "*iexplore" instead of "*firefox"

Upvotes: 0

nss
nss

Reputation: 561

Just replace *firefox with *iexplore. The exact code will vary depending on what language you're writing your test in or how you're actually launching the browser.

see: http://seleniumhq.org/docs/05_selenium_rc.html#from-selenese-to-a-program and click the button for your particular language.

Upvotes: 1

Sai Venkat
Sai Venkat

Reputation: 1248

Change the browser start command string you pass to DefaultSelenium factory. It will be *iehta or *iexplore depending on your selenium version.

new DefaultSelenium("localhost", 4444, "*iexplore", "http://www.google.com/");

Check out the docs for more info.

--Sai

Upvotes: 1

Related Questions