浏览代码

Fixes an issue where upload_file did not return the file path.

George S. Baugh 11 年之前
父节点
当前提交
3ffaa15fec
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/Selenium/Remote/Commands.pm

+ 1 - 1
lib/Selenium/Remote/Commands.pm

@@ -347,7 +347,7 @@ has '_cmds' => (
             'uploadFile' => {
                 'method'             => 'POST',
                 'url'                => 'session/:sessionId/file',
-                'no_content_success' => 1
+                'no_content_success' => 0
             },
             'getLocalStorageItem' => {
                 'method'             => 'GET',