$mech->form_name("queryfoo"); my $form = $mech -> current_form; my $input = $form->find_input('options'); $input->value('3'); $mech->click('Run');