Browser Automation on Mac OS X

I recently had to do a little research on the options available for automating Safari and FireFox on Mac OS X. Below are the possibilities I came up with. I haven’t tried any of the options out but first impressions make me lean towards FireWatir and SafariWatir. Here are my findings with a few very raw thoughts and comments:

Watir (FireWatir & SafariWatir)

Safari

FireFox

Other

Cost

image

image

image

Free

Good ol’ Watir. Seems to be quenching the thirst on the Mac too!

Selenium

Safari

FireFox

Other

Cost

image

image

image

Free

Large list of browser/OS support. Downfall is that it runs through a proxy or from inside a frame in the browser. How do you know that frame isn’t conflicting with your web app? What if you were running for days looking for memory leaks? If the automation tool is in a frame in your browser and the browser explodes, how do you know if it’s the Selenium or the browser? As noted here, Selenium sucks because: hacky workarounds for popups, SSL, & XSS, is not native browser driver, infrequent releases, Selenium-RC Safari “really sucks”.

WebDriver

Safari

FireFox

Other

Cost

image

image

image

Free

Test are written in Java. Very new and not complete. Can’t handle different document types (other than html), can’t drive Flash, HTTP session handling isn’t coordinated yet. suc

Eggplant  

Safari

FireFox

Other

Cost

image

image

image

$600-5000

Appears to simply drive OSX windows/functions. Doesn’t seem to know of or care about the DOM or the content in the browser. A Code example in the forum give me the impression that you can open Safari and use HTML controls using a “HotSpot” . Slight script interaction with Safari here too (open browser enter URL). Validation appears to be solely based image recognition.

iMacros for Firefox

Safari

FireFox

Other

Cost

image

image

image

Freeware

Quick and dirty. It would be possible to automate something in minutes.

CoScripter for FireFox

Safari

FireFox

Other

Cost

image

image

image

Free

Works in FireFox as a plugin. Appears very well thought out and very well done. Uses a wiki to view test details and edit test scripts. Pretty cool! Demo here. Made by IBM.

Leave a Reply

Your email address will not be published. Required fields are marked *