Using safari on MAC OS X using selenium

Hoi,

while setting up our new testing Machine ( a very old PowerPC with 466 Mhz ;) ) I realized that it is not that easy to make Safari work using Selenium RC. With Michele from mayflower helping me we could make it work.

Here is the solution:

1. Use this patched Version of Selenium RC Snapshot with Safari and MAC OS X support ( it is the snapshot including the patch from here ).

2. Start Selenium using sudo

3. If you face any problems like “Please add the directory containing networksetup to your path” then you should check your disc under /System/Library/CoreServices/RemoteManagement/ARDAgent.app/
Contents/Support/networksetup - this directory should exist. If not - like on my old machine - you need to create a symlink to the correct directory - e.g.
“sudo ln -s networksetup-panther networksetup”

That’s it - I hope it helps I needed quite a few hours to figure this out.

Comments

2 Responses to “Using safari on MAC OS X using selenium”

  1. Mahi on January 17th, 2008 5:27 pm

    After lot of trying and head breaking, we found your link and tried your suggestion. It worked for us. Thank you once again!

    Cheers!
    -Mahi

  2. Vasavi Kaza on February 28th, 2008 1:52 am

    Thanks a lot. It is not just for Safari, even for firefox browser, I had to start selenium using sudo.I fought with this issue for lot of days. Me being first one in my company to implement this, there was no help too. Your suggestion was helpful.

Leave a Reply