Explorar el Código

set timeouts according to new specification

the type is the key and the value is the timeout in ms.

see https://w3c.github.io/webdriver/webdriver-spec.html#set-timeouts

closes #290, closes #293
Gerhard Jungwirth hace 8 años
padre
commit
f9296a568d
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

@@ -1096,7 +1096,7 @@ sub set_timeout {
     $ms = _coerce_timeout_ms( $ms );
 
     my $res = { 'command' => 'setTimeout' };
-    my $params = { 'type' => $type, 'ms' => $ms };
+    my $params = { 'type' => $type, 'ms' => $ms, $type => $ms };
     return $self->_execute_command( $res, $params );
 }