[plt-scheme] Re: Delirium - a web automation tool
On Dec 7, 2007 12:42 PM, pp <pedro.e.pinto at gmail.com> wrote:
> This looks great. Look forward to playing with it.
>
> Just out of curiosity how do you script the browser?
>
> -pp
Hi PP,
I hate to say it, but
http://planet.plt-scheme.org/package-source/untyped/delirium.plt/1/0/doc.txt
might be a good place to start.
>From the documentation:
[quote]
Delirium uses continuations to maintain a REPL-style testing loop:
* Run the test code until a browser API call is made.
* Send the command to the browser.
* Wait for a result from the browser.
* Return the result to the test code and loop.
Commands are sent to the browser as fragments of Javascript. Results are sent
back in JSON format and are parsed into Scheme data structures.
[/quote]
Hopefully that's a start on your question, anyway. It's reasonably
late at this point in GMT.
Cheers,
Matt