Monkey
EOT is strip_blockquotes($xml), $pod; }
Split_single_line: { my $xml = <<EOT; <blockquote> Matches elements based on their values. This is particularly useful for refining a list of similarly-named toggle-buttons.</blockquote> EOT my $pod = <<EOT;
Matches elements based on their values. This is particularly useful for refining a list of similarly-named toggle-buttons.
Split_single_line: { my $xml = <<EOT; <blockquote> Thing one Thing two </blockquote> EOT my $pod = <<EOT;
Thing one Thing two
Nested_blocks: { my $xml = <<EOT; <blockquote> Thing one <blockquote> Thing two </blockquote> Thing three </blockquote> EOT my $pod = <<EOT;
Thing one
Thing two
Thing three
Extract_functions: { my $xml = <<'EOT'; <function name="click">
<param name="locator">an element locator</param>
<comment>Clicks on a link, button, checkbox or radio button. If the click action causes a new page to load (like a link usually does), call waitForPageToLoad.</comment>
</function> <function name="doubleClick">
<comment>Double clicks on a link, button, checkbox or radio button. If the double click action causes a new page to load (like a link usually does), call waitForPageToLoad.</comment>
</function> EOT my @functions; push @functions, <<'EOT'; =item $sel->click($locator)
Clicks on a link, button, checkbox or radio button. If the click action causes a new page to load (like a link usually does), call waitForPageToLoad.
$locator is an element locator
Double clicks on a link, button, checkbox or radio button. If the double click action causes a new page to load (like a link usually does), call waitForPageToLoad.
Beware of http://jira.openqa.org/browse/SEL-280, which will lead some event handlers to get null event arguments. Read the bug for more details, including a workaround.
$coord_string is specifies the x,y position (i.e. - 10,20) of the mouse event relative to the element returned by the locator.
Return the contents of the log.
This is a placeholder intended to make the code generator make this API available to clients. The selenium server will intercept this call, however, and return its recordkeeping of log messages since the last call to this API. Thus this code in JavaScript will never be called.
The reason I opted for a servercentric solution is to be able to support multiple frames served from different domains, which would break a centralized JavaScript logging mechanism under some conditions.
Returns all log messages seen since the last call to this API
1 POD Error
The following errors were encountered while parsing the POD:
'=item' outside of any '=over'
=over without closing =back
To install Test::WWW::Selenium, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::WWW::Selenium
CPAN shell
perl -MCPAN -e shell install Test::WWW::Selenium
For more information on module installation, please visit the detailed CPAN module installation guide.