Explorar o código

Merge pull request #148 from brianhorakh/master

has_javascript compatibility with JSON::XS 3.01+
Daniel Gempesaw %!s(int64=11) %!d(string=hai) anos
pai
achega
78e4badb6e
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

@@ -1195,7 +1195,7 @@ sub refresh {
 
 sub has_javascript {
     my $self = shift;
-    return $self->javascript == JSON::true;
+    return int($self->javascript);
 }
 
 =head2 execute_async_script