Explorar el Código

Fix #303: restore switch window functionality for non-FF browsers

Daniel Gempesaw hace 9 años
padre
commit
b7de5a63e1
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

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