Test 2 browsers(either IE or firefox) concurrently

sunram_ram

sunram_ram

@sunram-ram-cFe0fQ Oct 20, 2024
Hi,
How can i open 2 browsers at the same time and test within one test script?
I want to test concurrency within 2 browsers.
I am able to work as using one browser as IE and other as firefox, how to open both in IE or firefox. I am trying some thing like this:
selenium.open("localhost",4444,"*iexplore",url)
selenium1.open("localhost",4444,"*iexplore",url1)
But only one IE is opening.
but when i use different then it is working fine.

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • Saandeep Sreerambatla

    Saandeep Sreerambatla

    @saandeep-sreerambatla-hWHU1M Aug 16, 2010

    Can you also add some variable which can define the creation time or any other parameter which has a difference in the browser for that browser?

    Since you are accessing the same browser with different objects correct?
  • sunram_ram

    sunram_ram

    @sunram-ram-cFe0fQ Aug 16, 2010

    No! Actually Selenium is still running with 2 different sessions. These 4 are the only parameters that can be passed.
  • Saandeep Sreerambatla

    Saandeep Sreerambatla

    @saandeep-sreerambatla-hWHU1M Aug 17, 2010

    Actually selenium invokes the real browser so that may be the problem I am not very sure of it though.
    Hope you are testing using RC, in that scenario use it in interactive mode.
    If you are using java as language use..

    $ java -jar selenium-server.jar -interactive
    cmd=getNewBrowserSession

    and open a new instance , hope it works.