소스 검색

Fixed calls that were using the incorrect key from the Commands module

Gordon Child 14 년 전
부모
커밋
300586c30d
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      lib/Selenium/Remote/Driver.pm

+ 2 - 2
lib/Selenium/Remote/Driver.pm

@@ -592,7 +592,7 @@ sub go_forward {
 
 sub refresh {
     my $self = shift;
-    my $res = { 'command' => 'goForward' };
+    my $res = { 'command' => 'refresh' };
     return $self->_execute_command($res);
 }
 
@@ -991,7 +991,7 @@ sub delete_cookie_named {
     if ( not defined $cookie_name ) {
         return "Cookie name not provided";
     }
-    my $res = { 'command' => 'deleteAllCookies', 'name' => $cookie_name };
+    my $res = { 'command' => 'deleteCookieNamed', 'name' => $cookie_name };
     return $self->_execute_command($res);
 }