Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Using Perl to Test a Web App that uses Javascript

by drewbie (Chaplain)
on Jun 08, 2004 at 18:12 UTC ( [id://362473]=note: print w/replies, xml ) Need Help??


in reply to Using Perl to Test a Web App that uses Javascript

To the best of my knowledge there is no way to do this currently, although many have asked for it. The primary problem is that Javascript doesn't support the DOM, which is necessary for what you want to do. You might be better off using one of the windows-specific QA tools like WinRunner, etc.

That said, if you know the final form layout and list of elements you might be able to hack something w/ WWW::Mechanize by manually setting the various elements to the proper values. Check out the methods for setting form element values and submitting forms.

Good luck! Let us know what you find. IIRC Andy will be giving a testing talk at YAPC::NA next week that might be helpful.

  • Comment on Re: Using Perl to Test a Web App that uses Javascript

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://362473]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-04-24 18:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found