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


in reply to [SOLVED] WWW::Mechanize select() method fails

What version of WWW::Mechanize are you using? I have an older version and as far as I could discover the select does not work on drop down option groups. Documentation that I could find seemed to indicate that the newest version may be able to handle option groups, but I haven't upgraded my version yet so I can't verify that.
  • Comment on Re: WWW::Mechanize select() method fails

Replies are listed 'Best First'.
Re^2: WWW::Mechanize select() method fails
by Cody Pendant (Prior) on Nov 01, 2004 at 03:16 UTC
    I've got version 1.04 -- but what do you mean "option groups"? The HTML in my example isn't an option group, it's just a normal select menu. Isn't it?


    ($_='kkvvttuubbooppuuiiffssqqffssmmiibbddllffss')
    =~y~b-v~a-z~s; print
      Sorry for not being clear. By option groups, I mean the drop-down-arrow box you see on forms. You click on the arrow and a list opens up for the user to select one of several options. I never could get WWW::Mechanize to recognize that type of selection. There's some documentation out there, but I don't have it at my fingertips. I'll see if I can locate it.
Re^2: WWW::Mechanize select() method fails
by Cody Pendant (Prior) on Nov 01, 2004 at 03:41 UTC
    For the record, I've just installed the latest version, 1.05_02 but I'm having the same problem.


    ($_='kkvvttuubbooppuuiiffssqqffssmmiibbddllffss')
    =~y~b-v~a-z~s; print