I am using www::mechanize for selecting value in a listbox. I am using this command:
$mech->get( $url );
$mech->field("CATEGORY_ID" => 143);
where 'CATEGORY_ID' is a list box I am able to select the field using this value such as 143, but I want to select using label of the listbox. for eg if 'Internet' option has value 143, I should select using the label. as I don't know the values of different categories.
Please help if somebody can.
The list box is the same as mentioned here:
List Box example
I would be highly thankful to you.