in reply to WWW::Mechanize::Firefox, select with multiple names

I think you can also pass a DOM object instead of a name, so I'd try:

my $select = $mech->selector('#sel_subj', single => 1); $mech->select( $select, ['AAE']);

Update: As noted below, I shouldn't have put the name attribute there but the id attribute.

Replies are listed 'Best First'.
Re^2: WWW::Mechanize::Firefox, select with multiple names
by gizmo_mathboy (Friar) on Oct 28, 2011 at 20:09 UTC

    While that didn't work. I think the DOM object is subj_id.

    This did work:

    my $select = $mech->selector('#subj_id', single => 1); $mech->select($select, ['AAE']);

    Thanks for the help. I knew there had to be a way to pass the DOM/CSS stuff into it.

    Thanks,

    gizmo