Control Safari browser

K

Karl Puperze

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.
 
E

Ezra Zygmuntowicz

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.


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

http://safariwatir.rubyforge.org/

-Ezra
 
D

Dave Hoover

Karl said:
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. :)

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

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,215
Messages
2,571,113
Members
47,710
Latest member
HarleyMoli

Latest Threads

Top