|
@@ -1044,7 +1044,7 @@ sub _request_new_session {
|
|
|
if $FORCE_WD2; #XXX 'secret' feature to help the legacy unit tests to work
|
|
if $FORCE_WD2; #XXX 'secret' feature to help the legacy unit tests to work
|
|
|
|
|
|
|
|
#Delete compatibility layer when using drivers directly
|
|
#Delete compatibility layer when using drivers directly
|
|
|
- if ( $self->isa('Selenium::Firefox') || $self->isa('Selenium::Chrome') ) {
|
|
|
|
|
|
|
+ if ( $self->isa('Selenium::Firefox') || $self->isa('Selenium::Chrome') || $self->isa('Selenium::Edge') ) {
|
|
|
if ( exists $args->{capabilities}
|
|
if ( exists $args->{capabilities}
|
|
|
&& exists $args->{capabilities}->{alwaysMatch} )
|
|
&& exists $args->{capabilities}->{alwaysMatch} )
|
|
|
{
|
|
{
|
|
@@ -3572,7 +3572,7 @@ sub _prepare_file {
|
|
|
=head2 get_text
|
|
=head2 get_text
|
|
|
|
|
|
|
|
Description:
|
|
Description:
|
|
|
- Get the text of a particular element. Wrapper around L<find_element()>
|
|
|
|
|
|
|
+ Get the text of a particular element. Wrapper around L</find_element>
|
|
|
|
|
|
|
|
Usage:
|
|
Usage:
|
|
|
$text = $driver->get_text("//div[\@name='q']");
|
|
$text = $driver->get_text("//div[\@name='q']");
|
|
@@ -3588,7 +3588,7 @@ sub get_text {
|
|
|
|
|
|
|
|
Description:
|
|
Description:
|
|
|
Get the current text for the whole body. If you want the entire raw HTML instead,
|
|
Get the current text for the whole body. If you want the entire raw HTML instead,
|
|
|
- See L<get_page_source>.
|
|
|
|
|
|
|
+ See L</get_page_source>.
|
|
|
|
|
|
|
|
Usage:
|
|
Usage:
|
|
|
$body_text = $driver->get_body();
|
|
$body_text = $driver->get_body();
|
|
@@ -3745,16 +3745,3 @@ sub _coerce_number {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
1;
|
|
1;
|
|
|
-
|
|
|
|
|
-__END__
|
|
|
|
|
-
|
|
|
|
|
-=head1 SEE ALSO
|
|
|
|
|
-
|
|
|
|
|
-L<https://github.com/SeleniumHQ/selenium> - the main selenium RC project
|
|
|
|
|
-L<https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol> - the "legacy" webdriver specification
|
|
|
|
|
-L<https://www.w3.org/TR/webdriver/> - the WC3 WebDriver 3 specification
|
|
|
|
|
-L<https://github.com/teodesian/Selenium-Remote-Driver/wiki>
|
|
|
|
|
-Brownie
|
|
|
|
|
-Wight
|
|
|
|
|
-
|
|
|
|
|
-=cut
|
|
|