in reply to Not able to select the form with WWW::Mechanize::Firefox using form_with_fields()

Works for me, prints

Present value of DMPName: Current Name[0]

  • Comment on Re: Not able to select the form with WWW::Mechanize::Firefox using form_with_fields()

Replies are listed 'Best First'.
Re^2: Not able to select the form with WWW::Mechanize::Firefox using form_with_fields()
by ajose (Acolyte) on Jun 28, 2011 at 10:58 UTC
    Thanks for the reply.

    The code works for another form in the same web page which has multiple inputs and options. But unfortunately I could not figure out the reason for which the same code does not work for the above mentioned form. Hence please let me know for any other work around for this issue by avoiding the function form_with_fields().

      Hence please let me know for any other work around for this issue by avoiding the function form_with_fields().

      If you don't want to use form_with_fields, then you can use any other form... function, your choice

        The given HTML form does not have a formId or form Name. Hence I cannot use any of those. And with form_number it returned "Current form:4 elements found for form number 1". Hence I am really blocked due to this issue.