Explorar el Código

Fix #301: Conform switch_to_window's parameters to spec

https://w3c.github.io/webdriver/webdriver-spec.html#switch-to-window
Daniel Gempesaw hace 9 años
padre
commit
8acc05a99e
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

@@ -1708,7 +1708,7 @@ sub switch_to_window {
         return 'Window name not provided';
     }
     my $res    = { 'command' => 'switchToWindow' };
-    my $params = { 'name'    => $name };
+    my $params = { 'handle'  => $name };
     return $self->_execute_command( $res, $params );
 }