浏览代码

Fix #301: Conform switch_to_window's parameters to spec

https://w3c.github.io/webdriver/webdriver-spec.html#switch-to-window
Daniel Gempesaw 9 年之前
父节点
当前提交
8acc05a99e
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 );
 }