I've seen some of the tools using accessibility layer, but haven't looked at
them how they do that exactly technically. If they would allow to satisfy
RAutomation's public API then they're good enough. I guess it's just a
matter of time to find out :)

By the way, currently Windows' native Windows are also manipulated with the
FFI, but i haven't had to use MS Active Accessibility C interface so far
because plain Windows API has been enough.

I wouldn't recommend windows-pr and Win32::API for the reason that they
don't (at least didn't some time ago) have binaries for Ruby 1.9. FFI would
be the correct way to do these things.

About OS X, i've heard that there is this AppleScript - is this the thing to
work with OS X's accessibility layer? There's rb-appscript [1] (which
doesn't seem to be maintained anymore though) to work with that, maybe this
could be also used. Just wondering.

Also wanted to let you guys know that i've received some positive feedback
about RAutomation from some people i don't know who have said that they'd
like to contribute. Let's see what, if anything will happen on that front
too.

Anyway, i'd like to have support for all three OS-es for at least some of
the window managers to handle certain types of windows. If it turns out that
it's really easy to fulfill current public API-s need in all OS-es then i'd
be willing to think adding new functionality via API itself. Currently i'd
just like to see consistent API for every adapter, if it's possible at all.
It's like probation period.

[1] http://appscript.sourceforge.net/rb-appscript/index.html

Jarmo

On Sat, Dec 18, 2010 at 8:56 PM, Bill Agee <billa...@gmail.com> wrote:

> Hi,
>
> On the topic of Firefox UI automation on Linux, I've been wanting to
> investigate the use of Ruby FFI in combination with AT-SPI, to interact with
> Firefox UI elements:
>
> https://developer.mozilla.org/en/Accessibility/AT-APIs
>
> http://en.wikipedia.org/wiki/AT-SPI
>
> Don't know yet how easy it will be, though. :)
>
> But over in the Windows world, using windows-pr and Win32::API, I've had
> some limited success writing Ruby code that uses the MS Active Accessibility
> C interface to manipulate UI objects.
>
> So I'm hoping that something similar is possible with the Firefox
> accessibility API on Linux, via Ruby FFI. :)
>
> Also, as you mention, I think there are existing tools to manipulate the UI
> of X Windows apps, which might be an alternative to wrapping a bunch of C
> functions.
>
> Bill
>
>
>
> On Fri, Dec 17, 2010 at 5:39 PM, Jarmo <jarm...@gmail.com> wrote:
>
>> Well, that depends if there are proper tools-possibilities to do the same
>> kind of things as it is possible with Windows API.
>>
>> All you Linux and OS X guys, could you recommend me anything or have any
>> ideas/tips related with these platforms? Maybe there's some external tools
>> already available to mess with windows if there's no direct access from
>> Ruby? Of course if anyone would like to contribute their own code, i'd be
>> happy to accept that pull request :)
>>
>> Also, i'd have to say that i'm pretty dumb when it comes to window
>> managers in those OS-es, but i'm eager to learn :)
>>
>> I have always thought that the main advantage over Selenium is Watir's
>> easy-to-use and nice API.
>>
>> Jarmo
>>
>>
>> On Sat, Dec 18, 2010 at 2:38 AM, Bret Pettichord <b...@pettichord.com>wrote:
>>
>>> I am so excited about this. One of the things that makes Watir a better
>>> tool that Selenium today is that it has much better support for dialogs of
>>> all types. This all depends on our promiscuous use of the Win32 API. Using
>>> Rautomation puts us on the road to being able to do the same with other
>>> platforms.
>>>
>>> Bret
>>>
>>> On Fri, Dec 17, 2010 at 5:14 PM, Jarmo <jarm...@gmail.com> wrote:
>>>
>>>> I'm pretty sure that some of you already have noticed the library i've
>>>> made to automate windows and their controls. I've now written a short blog
>>>> post about it.
>>>>
>>>>
>>>> http://www.itreallymatters.net/post/2352350743/automating-windows-and-their-controls-with-ruby
>>>>
>>>> If that thing seems to work well then what do you think if we'd replace
>>>> AutoIt and win32-api in Watir with this eventually? I'd be happy to do 
>>>> that.
>>>>
>>>> Jarmo
>>>>
>>>> _______________________________________________
>>>> Wtr-development mailing list
>>>> Wtr-development@rubyforge.org
>>>> http://rubyforge.org/mailman/listinfo/wtr-development
>>>>
>>>
>>>
>>>
>>> --
>>> Bret Pettichord
>>> Lead Developer, Watir, www.watir.com
>>>
>>> Blog, www.io.com/~wazmo/blog <http://www.io.com/%7Ewazmo/blog>
>>> Twitter, www.twitter.com/bpettichord
>>>
>>>
>>> _______________________________________________
>>> Wtr-development mailing list
>>> Wtr-development@rubyforge.org
>>> http://rubyforge.org/mailman/listinfo/wtr-development
>>>
>>
>>
>> _______________________________________________
>> Wtr-development mailing list
>> Wtr-development@rubyforge.org
>> http://rubyforge.org/mailman/listinfo/wtr-development
>>
>
>
> _______________________________________________
> Wtr-development mailing list
> Wtr-development@rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-development
>
_______________________________________________
Wtr-development mailing list
Wtr-development@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-development

Reply via email to