tags:

views:

674

answers:

3

I am running a test in Selenium RC with Java in Eclipse to browse two URLs. I get two Selenium windows, but testing of both URLs is done by opening one single IE window. How can I make it open the URLs on two different IE browsers and if possible, simultaneously?

+1  A: 

I believe you must use two Selenium instances to achieve this effect - one selenium instance per window.

MetroidFan2002
Agreed. If you start up two Selenium RC instances, have them operating on different ports, and then connect to the two RC instances from your test code.
A: 

Hi Metroid,

Iam using the below java code in eclipse. I could get two selenium windows for two iterations in while loop (Aren't these two windows the selenium instances? If so how to achieve this) and on third IE window google page is opened twice. I need to open google page on two separate IE windows.

while ((strLine = br.readLine()) != null) { browser = new DefaultSelenium("localhost", 4444, "*iexplore", "http://www.google.com"); browser.start(); browser.open("/"); ....... ..... }

A: 

Did you achiev this? I am trying doing the same, but on this page http://svn.openqa.org/fisheye/browse/~raw,r=497/selenium-grid/trunk/doc/website/faq.markdown I read, that the selenium instance is writing something into the registry, a value, that identifies his internet explorer instance. If you start another selenium instance, it uses the same value and the same explorer.

please tell me if you found something. thanks.