Selenium RC, Safari and Blocking Browser Pop-Ups

Just a quick note here:

If you are using selenium rc to remote control a Safari on a Mac, remember to turn off pop-up blocking, or else your tests will hang in “selenium.start()” somewhere deep down in HttpURLConnection.getResponseCode() because the selenium-rc server never returns with any content.

In Safari menu, de-select “Block Pop-Up Windows”.

Let’s just say this wasted some time on me, so hope this will help someone out there in the same starter problems :-)

February 13, 2010 В· polesen В· 5 Comments
Tags: , , ,  В· Posted in: Programming, Testing, Tools

5 Responses

  1. Luke - March 25, 2010

    Hi
    Thanks for your solution.
    It did solve my safari start problem.
    But i meet a new problem now.
    When running a test suit with bromine, it can’t open two or more safari window for multiple test cases.
    Any help is very grateful.

  2. Mai - November 24, 2010

    Thanks, that solved my safari issue.

  3. David shang - January 13, 2011

    now, safari often pop up some windows:
    [Flash Player(Safari Internet plug-in)quit unexpectedly ]

    with selenium how to resolve the problem.
    thank you

  4. polesen - January 13, 2011

    I have no idea :(

  5. simple - February 15, 2011

    Hi Friend, I turn off pop-up blocking of safari, but the problem “tests will hang in “selenium.start()” somewhere deep down in HttpURLConnection.getResponseCode() because the selenium-rc server never returns with any content.” still exist. Can you give me some suggestions? Thanks

Leave a Reply