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.
EOT is strip_blockquotes($xml), $pod; }
Split_single_line: { my $xml = <<EOT; <blockquote> Thing one Thing two </blockquote> EOT my $pod = <<EOT;
Thing one Thing two
EOT is strip_blockquotes($xml), $pod; }
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
EOT is strip_blockquotes($xml), $pod; }
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">
<param name="locator">an element locator</param>
<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
- $sel->double_click($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.
$locator is an element locator
- $sel->click_at($locator, $coord_string)
-
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.
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.
$locator is an element locator
$coord_string is specifies the x,y position (i.e. - 10,20) of the mouse event relative to the element returned by the locator.
- $sel->get_log_messages()
-
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:
- Around line 139:
'=item' outside of any '=over'
=over without closing =back