Weasel::FindExpanders::HTML(3pm)

Weasel::FindExpanders::HTML3pm

Weasel findexpanders html

Usage

  use Weasel::FindExpanders::HTML;
  my $button = $session->find($session->page, '*button|{text=>"whatever"}');

Version

version 0.32

Overview

This module provides a series of short-cuts for XPath expressions for use with Weasel's find() function for testing of HTML pages, geared toward standard HTML5 tags.

Subroutines/methods

button_expander

Finds button tags or input tags of types submit, reset, button and image.

Criteria:

•

'id'

•

'name'

•

'text'

•

button: matches content between open and close tag

•

input: matches 'value' attribute (shown on button),
or image button's 'alt' attribute

checkbox_expander

Finds input tags of type checkbox

Criteria:

•

'id'

•

'name'

•

'value'

contains_expander

Finds tags containing 'text'

labeled_expander

Finds tags for which a label has been set (using the label tag)

Criteria:

•

'text': text of the label

•

'tag': tags for which the label has been set

titled_expander

Finds tags for which a title attribute has been set

Criteria:

•

'text': text of the title attribute

•

'tag': tags for which the title has been set

field_expander

Finds tags for which the id, name or title attribute has been set, or for which there's a label

Criteria:

•

'text': text of the attribute or label

•

'tag': tags for which the attribute or has been set

link_expander

Finds A tags with an href attribute whose text or title matches 'text'

Criteria:

•

'text'

option_expander

Finds OPTION tags whose content matches 'text' or value matches 'value'

Criteria:

•

'text'

•

'value'

password_expander

Finds input tags of type password

Criteria:

•

'id'

•

'name'

radio_expander

Finds input tags of type radio

Criteria:

•

'id'

•

'name'

•

'value'

select_expander

Finds select tags

Criteria:

•

'id'

•

'name'

text_expander

Finds input tags of type text or without type (which defaults to text)

Criteria:

•

'id'

•

'name'

Contributors

  Erik Huelsmann
  Yves Lavoie

Maintainers

  Erik Huelsmann

Bugs and limitations

Bugs can be filed in the GitHub issue tracker for the Weasel project:
https://github.com/perl-weasel/weasel/issues

Source

The source code repository for Weasel is at
<https://github.com/perl-weasel/weasel>

Support

Community support is available through [email protected] <mailto:[email protected]>.

Releases

4 releases since Debian 10 (Buster); the text changed 3 times.

  1. 10
  2. 11
  3. 12
  4. 13

Author

  Erik Huelsmann

From libweasel-perl 0.32-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.