Prechádzať zdrojové kódy

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 8 rokov pred
rodič
commit
f9296a568d
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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 );
 }