http://qs321.pair.com?node_id=1212328


in reply to Re^3: How do I pull HTML form option values?
in thread How do I pull HTML form option values?

From what I can tell, WWW::Mechanize uses HTML::Form, which , in my opinion, does not parse the <select> tag properly. ... excerpt from source code

Hi,

I doubt rt://HTML-Form has issue with select tag.

On the aforementioned website, the distances in miles are provided by javascript.

HTML::Form, like WWW::Mechanize, doesn't run javascript. For that you'd need WWW::Mechanize::Firefox /..::Chrome/..::PhantomJS

  • Comment on Re^4: How do I pull HTML form option values?

Replies are listed 'Best First'.
Re^5: How do I pull HTML form option values?
by NetWallah (Canon) on Apr 05, 2018 at 05:49 UTC
    You are right ! (++)

    The select has an event listener that somehow manages to populate the distance options .. although I could hot figure out how it did that.

    In my debug attempt, I did an "inspect" of the option, and saw the options populated, so I assumed they came from HTML.

    Thanks for identifying the issue!

                    Memory fault   --   brain fried

      Hi,

      I used mech-dump to dump the forms on the page