in reply to Mechanizing Javascript form
|
---|
Replies are listed 'Best First'. | |
---|---|
Re:* Mechanizing Javascript form
by Roy Johnson (Monsignor) on Nov 10, 2003 at 19:20 UTC | |
I have to get my session authenticated so I can check that protected documents are being served. It promises to be tedious, but that's not Perl's fault. | [reply] |
by Cody Pendant (Prior) on Nov 10, 2003 at 20:08 UTC | |
Show us the page, why don't you, and let us figure out what it's doing? The fundamental point is that a JavaScript form almost certainly doesn't do anything that an equivalent HTML form can do. The JS probably just checks that certain fields aren't empty or something like that -- checks the buttons/fields before submitting. After submitting, it's just another form. | [reply] [d/l] |
by Roy Johnson (Monsignor) on Nov 10, 2003 at 21:57 UTC | |
Here's the pertinent code. On an earlier pass, I had the commented section uncommented, so that I got a local copy of the file. The file contained this line, which is what I expected the find_link to return, but it did not find it.
I'm tempted to say it's a bug in Mechanize, but I'm not having a good brain day, so maybe I'm just misunderstanding how find_link is supposed to work. Update: it looks like the reason for this is broken HTML: an unclosed link earlier on the page. | [reply] [d/l] [select] |
by Roy Johnson (Monsignor) on Nov 10, 2003 at 21:42 UTC | |
The JavaScript... ...and the form...
| [reply] [d/l] [select] |