By aks

2010-09-14 12:01:38 8 Comments

I'm using WWW::Mechanize to retrieve a form from a webpage:


use WWW::Mechanize;

my $mechanize = WWW::Mechanize->new();

$mechanize->proxy(['http', 'ftp'], 'http://proxy/');



The website HTML has code as follows

<form action="" id="signin" method="post">

but I get the error

 There is no form with ID "signin" at

What do I do?


@myme 2010-09-28 11:03:45

Without knowing exactly could be wrong, you might try to output whatever forms that WWW::Mechanize is able to find in the response by using:

use Data::Dumper;
print Dumper($mechanize->forms());

It should output all the forms and their respective attributes etc.

Double check that the form is in the dump, otherwise something is wrong. Then check that the form's ->{attr}->{id} is what you expect as well.

You can also try to select the form using another way, e.g. by name, and see if that helps.

Related Questions

Sponsored Content

1 Answered Questions

Can I automate AngularJS login form in Perl using WWW::Mechanize

1 Answered Questions

[SOLVED] Automatic Search Using WWW::Mechanize

1 Answered Questions

[SOLVED] Error while using WWW::Mechanize in Perl to open a Webpage

1 Answered Questions

[SOLVED] WWW::Mechanize with Perl

1 Answered Questions

Scraping dynamic forms WWW::Mechanize Perl

3 Answered Questions

[SOLVED] How do I configure WWW::Mechanize to work behind a proxy and https?

  • 2010-09-14 13:42:10
  • aks
  • 1198 View
  • 0 Score
  • 3 Answer
  • Tags:   perl

1 Answered Questions

[SOLVED] Perl WWW::Mechanize Parse Content issue?

  • 2012-08-15 06:21:39
  • Neon Flash
  • 888 View
  • 2 Score
  • 1 Answer
  • Tags:   perl www-mechanize

1 Answered Questions

[SOLVED] Perl WWW::Mechanize::Firefox and input type file

1 Answered Questions

[SOLVED] Possible to use timeout in WWW::Mechanize on https?

1 Answered Questions

[SOLVED] Filling up form using perl WWW::Mechanize::Formfiller

Sponsored Content