The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Weasel::Widgets::HTML::Selectable - Wrapper for selectable elements

VERSION

0.01

SYNOPSIS

  my $selectable = $session->page->find('./option');
  $selectable->selected(1);   # select option

DESCRIPTION

METHODS

selected([$value])

Returns selected status of the element. If $value is provided, sets the selected status.

get_attribute($name)

Returns the value of the attribute; when the element is not selected, the 'value' attribute is overruled to return false (an empty string).