Click here to get back home

WWW::Mechanize "There is no Form named (...)"

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
WWW::Mechanize "There is no Form named (...)" VBSome 12-08-2004
Posted by VBSome on December 8, 2004, 5:58 am
Please log in for more thread options
I am playing around with WWW::Mechanize.

I am looking at the HTML for a web site and see:
<form name="PSForm" method="post" action="/res/avail.mi?isSearch=false"
onSubmit="return ValidateFrm();"

In Code I use:
$agent->form_name("PSForm")

And then Perl tells me that:
There is no form named "PSForm" at myscript.pl Line 22

HELP!! What is that all about?? I can see the form in the HTML source, but
when I ask Mechanize for ->forms, the array remains empty.... HUH??

TIA!




Posted by VBSome on December 8, 2004, 7:55 pm
Please log in for more thread options
Found it!!

It helps if Crypt::SSLeay is installed when dealing with secure sockets
(https).

I was fooled by the fact that even if SSLeay is not installed Mech
can ->get("https://...")

Hmm!


>I am playing around with WWW::Mechanize.
>
> I am looking at the HTML for a web site and see:
> <form name="PSForm" method="post" action="/res/avail.mi?isSearch=false"
> onSubmit="return ValidateFrm();"
>
> In Code I use:
> $agent->form_name("PSForm")
>
> And then Perl tells me that:
> There is no form named "PSForm" at myscript.pl Line 22
>
> HELP!! What is that all about?? I can see the form in the HTML source, but
> when I ask Mechanize for ->forms, the array remains empty.... HUH??
>
> TIA!
>




Similar ThreadsPosted
WWW::Mechanize cannot find the form. February 14, 2006, 9:04 pm
Getting WWW::Mechanize to submit a form September 15, 2007, 3:44 pm
HTTP::Mechanize / file-form October 13, 2006, 10:16 pm
named arguments to XS function? March 24, 2006, 2:44 pm
form submission automation August 13, 2006, 9:15 pm
HTML::Form, Multiple select Elements with Same name July 30, 2004, 3:48 pm
file upload, multipart form, and cgi::cache April 21, 2006, 7:01 am
Looking for AJAX HTML Table Form Module August 15, 2007, 11:29 am
HTTP::Request::Form - Problem pressing input type=image button February 1, 2005, 7:56 am
Help with Mechanize January 15, 2007, 3:14 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap