Control Safari browser

Hi,

I am using win32ole to control the Internet Explorer and I want to port
my tool to work with Safari.
I know that there is an extension for the watir project, which uses
AppleScript to drive safari, but this is not very elegant.

Does anyone know an interface (like win32ole) to control the safari
browser.
Is it WebKit? Maybe with RubyCocoa?

Thanks for your Help.

On 9/19/06, Karl P. [email protected] wrote:

Is it WebKit? Maybe with RubyCocoa?
I’d check what AppleScript options are available for Safari. If there
are
enough hooks there, RubyCocoa will allow you to interface between Ruby
and
OSAScript (sort of). If not, you might be able to create a custom
WebKit
project in RubyCocoa, that automated the portions you want automated.

Thanks for your Help.

On Sep 19, 2006, at 11:48 AM, Karl P. wrote:

Is it WebKit? Maybe with RubyCocoa?

Thanks for your Help.


Posted via http://www.ruby-forum.com/.

There is the safariwatir project. It can do what you want.

http://safariwatir.rubyforge.org/

-Ezra

Posted by Karl P.
on 19.09.2006 20:48
Hi,

Does anyone know an interface (like win32ole) to control the safari
browser.
Is it WebKit? Maybe with RubyCocoa?

Thanks for your Help.

Have a look at Automator actions:

OttoMate
Web Test Automator Actions (for Safari)
http://ottomate.org/

or websites like:

http://www.browsrcamp.com/

Cheers,
Verno

Karl P. wrote:

I know that there is an extension for the watir project, which uses
AppleScript to drive safari, BUT THIS IS NOT VERY ELEGANT.

SafariWatir (trunk) no longer uses Ruby/AppleScript to drive Safari.
It now uses Hamish Sanderson’s excellent rb-appscript Ruby/Apple-event
bridge. I’m not sure if you would consider this more elegant or not,
but it’s certainly a lot faster. :slight_smile:

SafariWatir: http://safariwatir.rubyforge.org/
rb-appscript: http://rb-appscript.rubyforge.org/

Dave Hoover
http://redsquirrel.com/dave/

Ezra Z. wrote:
There is the safariwatir project. It can do what you want.

http://safariwatir.rubyforge.org/

-Ezra

Please read:
I know that there is an extension for the watir project, which uses
AppleScript to drive safari, BUT THIS IS NOT VERY ELEGANT.