rmurphy2718 has asked for the wisdom of the Perl Monks concerning the following question:

Hello, first post! Glad to be here! Please impart your Perl wisdom!

I am trying to write a script that automatically reserves racketball for me. I will use shell commands to have the program initiate at a certain time (when reservations are open), and Perl will run through the steps of making the reservation.

I can use mech to submit the forms to log in, etc, and otherwise navigate to the spot where reservations are made. The problem is the reservations are made through JavaScript (an  onclick attribute which calls a JavaScript function which pushes the reservation).

So the big question is: What is the Best way to go about calling that JS function through Perl?

If the answer is the JavaScript plugin, I might need more Perl wisdom on how to solve this when running the install command on Windows 7, Strawberry Perl 5.16.2.2-64bit

Non-zero exit status: 13 Parse errors: Bad plan. You planned 17 tests but ran 6. Files=31, Tests=3256, 12 wallclock secs ( 0.55 usr + 0.08 sys = 0.62 + CPU)
Result: FAIL

But I don't want to get ahead of myself...

Thanks!

Replies are listed 'Best First'.
Re: WebScripting, Need to Call JavaScript Function Through Perl, Not sure how! (search)
by Anonymous Monk on Sep 15, 2013 at 03:53 UTC