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

Hi Monks, I have a doubt regarding Mech::firefox. My question is how to Enter a value to a field which is having no name (but have id).

Pls take a look at this website     http://www.trustedchoice.com/content/find-an-agent/FindAnAgent.aspx Here I want to give the Zip/Postal code Field a value of "10027" and click the Go button. Can any one Pls guide me how to do this.

Thanks in Advance Monks, & Thanks Corion for this wonderfull module.

  • Comment on How to Enter a value to a field without having name in WWW-Mechanize-Firefox
  • Download Code

Replies are listed 'Best First'.
Re: How to Enter a value to a field without having name in WWW-Mechanize-Firefox
by Anonymous Monk on Nov 04, 2012 at 17:58 UTC

      Thanks Monk, I read that before asking this question(+ documentation + cookbook also)! I am just a beginner and I didn't find a way to do that, that's why I asked here.

      I may click through Xpath, but how will I enter a value there?(Pls check the mentioned site Source code!, Did you checked it?)

      Here, the beginners like me are asking for solutions & not an amazing advice.

        A reply falls below the community's threshold of quality. You may see it by logging in.