Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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

by beech (Parson)
on Apr 04, 2018 at 21:55 UTC ( #1212328=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1212328]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2021-04-14 16:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?