Selaa lähdekoodia

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

George S. Baugh 11 vuotta sitten
vanhempi
sitoutus
3ffaa15fec
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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',