[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Control Safari browser

Karl Puperze

9/19/2006 6:48:00 PM

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.

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

4 Answers

Ezra Zygmuntowicz

9/19/2006 11:44:00 PM

0


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

> 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.
>
> --
> Posted via http://www.ruby-....
>


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

http://safariwatir.ruby...

-Ezra

Karl Puperze

9/20/2006 6:51:00 AM

0

Ezra Zygmuntowicz wrote:
There is the safariwatir project. It can do what you want.
>
> http://safariwatir.ruby...
>
> -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.

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

Verno Miller

9/30/2006 12:10:00 PM

0


> Posted by Karl Puperze
> 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://ott...

or websites like:

http://www.brows...


Cheers,
Verno

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

Dave Hoover

10/16/2006 2:27:00 PM

0

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

SafariWatir: http://safariwatir.ruby...
rb-appscript: http://rb-appscript.ruby...

Dave Hoover
http://redsquirrel...