Re: Scripting in PiggyBank

From: David Huynh <dfhuynh_at_csail.mit.edu>
Date: Tue, 29 Nov 2005 18:27:06 -0500

Chung Le wrote:

> In order to automate my PiggyBank sessions, I need Chickenfoot to
> recognize the following:
> 1. The datacoin icon in the status bar at the bottom right of the
> browser window. Looking up the XUL file for it, I found the id to be
> "piggyBank-datacoin". But when I try a find("piggyBank-datacoin") in
> Chickenfoot, it doesn't seem to be able to find it.

This is probably because Chickenfoot only works on the web page being
viewed rather than the whole Firefox window.

> 2. The Commands option in the "Collected Information" window. A
> find("Commands") in Chickenfoot returns no match.
> 3. The Save All button also in the "Collected Information" window.
> A find("Save All") returns no match as well.
> I will do some more investigation but if any one has any suggestions
> in the mean term, I would really appreciate it very much.

You might have to contact Chickenfoot's author directly.

David

>
> Cheers,
> -- Chung --
>
> David Huynh wrote:
>
>> I'm afraid you are the first to attempt this. Try to see if you can
>> access the browser's chrome window from within Chickenfoot.
>> "document" or "top" might be the right object. From there, maybe you
>> can access Piggy Bank's script function hooked to the onclick event
>> of the data coin icon, or that of the Browse Tidbits on This Page
>> menu command. Let us know what you find.
>>
>> Thanks.
>>
>> David
>>
>> Chung Le wrote:
>>
>>> Hi David,
>>>
>>> I am using Chickenfoot to automate my PiggyBank sessions. I need to
>>> instruct Chickenfoot to click on the "collect info from this web
>>> page" button at the bottom right of the web page. Chickenfoot does
>>> not recognize it when I say click("collect info from this web
>>> page"). DOMinspector doesn't seem to work well here either . What is
>>> the correct text pattern I need to say for Chickenfoot to recognize
>>> the button correctly?
>>> Many thanks.
>>>
>>> -- Chung --
>>>
>>> David Huynh wrote:
>>>
>>>> Hi Chung,
>>>>
>>>> Have you tried the following 2 tools?
>>>> http://greasemonkey.mozdev.org/
>>>> http://groups.csail.mit.edu/uid/chickenfoot/
>>>>
>>>> They are probably more suitable for the kind of generic website
>>>> scripting you want.
>>>>
>>>> Cheers,
>>>>
>>>> David
>>>
>>>
>
Received on Tue Nov 29 2005 - 23:21:08 EST

This archive was generated by hypermail 2.3.0 : Thu Aug 09 2012 - 16:39:18 EDT