Explorar el Código

Attempted fix for (github) issue #128 / unexported encode_base64:

When I attempt to use

$driver->upload_file( $foo );

I get:

Undefined subroutine &Selenium::Remote::Driver::encode_base64
Joe Higton hace 11 años
padre
commit
6c93062136
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lib/Selenium/Remote/Driver.pm

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

@@ -2152,7 +2152,7 @@ sub upload_file {
     require MIME::Base64;
 
     my $params = {
-        file => encode_base64($string)          # base64-encoded string
+        file => MIME::Base64::encode_base64($string)          # base64-encoded string
     };
     return $self->_execute_command( $res, $params );
 }