CrazyEngineers
  • Test 2 browsers(either IE or firefox) concurrently

    sunram_ram

    Member

    Updated: Oct 20, 2024
    Views: 1.0K
    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.
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • Saandeep Sreerambatla

    MemberAug 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?
    Are you sure? This action cannot be undone.
    Cancel
  • sunram_ram

    MemberAug 16, 2010

    No! Actually Selenium is still running with 2 different sessions. These 4 are the only parameters that can be passed.
    Are you sure? This action cannot be undone.
    Cancel
  • Saandeep Sreerambatla

    MemberAug 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.
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register