Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Using WWW::Selenium To Test Or Automate An Ajax Website

by spx2 (Deacon)
on Dec 31, 2008 at 05:51 UTC ( #733416=note: print w/replies, xml ) Need Help??


in reply to Using WWW::Selenium To Test Or Automate An Ajax Website

Very very nice tutorial ! I was looking for something like this I was actually thinking of writing something similar with WWW::Selenium using Greasemonkey+Firefox+some_http_server_running_perl from "scratch" that would inject code in the page using AJAX to communicate between Perl and Javascript but now I'm more confident of WWW::Selenium s powers

I have tried Selenium myself,installed it on my computer,it takes a pretty big hit on the resources as I remember...it was written in Java I think,it opened up it's own http server and had installed a firefox extension on my firefox.

Basically the same thing can be done with Greasemonkey since it allows one to write code exactly after the page is rendered.

  • Comment on Re: Using WWW::Selenium To Test Or Automate An Ajax Website

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://733416]
help
Chatterbox?
[Corion]: erix: There is somebody who has hacked up some Ruby scripts to do just that, but the Ruby scripts have some hardcoded #defines (well, reimplement those), so the extraction doesn't compile for Windows...
[Corion]: libpg_query
[Corion]: ... and I think "porting" it basically means (re)implementing a C preprocessor and feeding that one with the appropriate #defines for the platforms, and/or providing stub implementations for OS-specific functions that the query parser really wants to call
[erix]: ah, interesting. Well, sounds like a good start..
[Corion]: In the long run, obviously, the parser wouldn't need/call OS-specific stuff anyway, but we're a long way from that :D
[Corion]: erix: Yeah - I think basically the solution should be a "fake_os.h", which implements just enough stub routines for any OS to make the compilation of the parser pass. But for that, the complete (relevant) source code needs to be extracted, and the ...
[Corion]: ... Ruby script only extracts parts of the source code as Windows-specific files aren't considered relevant
[erix]: you got your work cut out for the hoidays :)
[erix]: +l

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2018-07-23 11:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (464 votes). Check out past polls.

    Notices?