Explorar o código

Merge pull request #124 from kablamo/fix-query

Fix get_body when used with a non-xpath default finder
Daniel Gempesaw %!s(int64=11) %!d(string=hai) anos
pai
achega
2addeb7e80
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/Selenium/Remote/Driver.pm

+ 1 - 1
lib/Selenium/Remote/Driver.pm

@@ -2185,7 +2185,7 @@ sub get_text {
 
 sub get_body {
     my $self = shift;
-    return $self->get_text('//body');
+    return $self->get_text('//body', 'xpath');
 }
 
 =head2 get_path