-
Notifications
You must be signed in to change notification settings - Fork 5.8k
LocalFileDetector - PhantomJs 2.0 GhostDriver Windows8 #13302
Comments
I get the same error when trying to attach file using the Codeception framework (with PhantomJS running as GhostDriver). Anyone have idea how to work around this? |
You need to remove 'multiple' from input tag to make it work Following is how i manage to remove using php |
There's no "multiple" in the input tag of the upload field I'm struggling with. Having said that, it also doesn't accept multiple files to be uploaded when doing it manually. Any other ideas? |
same for me, Codecpetion 2.1.2, PhantomJS 2.0.0 |
I looked into this a fair bit. Short: Use the Longer: As mentioned on SO, this does not happen when running with the PhantomJS driver directly. That's because Ghost Driver PR#324 implemented the What does The workaround is to not try to upload the file in the first place, but just send the path. For Python this means setting the
Looking at Facebooks PHP version of the remote driver, the decision of whether or not to use
If your PhantomJS actually runs on a different machine, regardless of which remote driver you use you need to make sure that the files are actually available on the remote server on the path that you are sending. |
Due to our very limited maintenance capacity, we need to prioritize our development focus on other tasks. Therefore, this issue will be automatically closed (see #15395 for more details). In the future, if we see the need to attend to this issue again, then it will be reopened. Thank you for your contribution! |
PHP CALL
ERROR
PHP Fatal error: Uncaught exception 'WebDriverException' with message 'JSON decoding of remote response failed.
Error code: 4
The response: 'Error - incompatible type of argument(s) in call to _uploadFile(); candidates were
_uploadFile(QString,QStringList)'
' in /var/www/craiglist/php/v3/lib/remote/HttpCommandExecutor.php:241
Stack trace:
#0 /var/www/craiglist/php/v3/lib/remote/RemoteWebDriver.php(491): HttpCommandExecutor->execute(Object(WebDriverCommand))
#1 /var/www/craiglist/php/v3/lib/remote/RemoteExecuteMethod.php(36): RemoteWebDriver->execute('uploadFile', Array)
#2 /var/www/craiglist/php/v3/lib/remote/RemoteWebElement.php(338): RemoteExecuteMethod->execute('uploadFile', Array)
#3 /var/www/craiglist/php/v3/lib/remote/RemoteWebElement.php(299): RemoteWebElement->upload('/var/www/craigl...')
#4 /var/www/craiglist/php/v3/includes/classes/clposter_basic.class.php(478): RemoteWebElement->sendKeys('/var/www/craigl...')
#5 /var/www/craiglist/php/v3/includes/classes/clposter_basic.class.php(487): clposter_basic->uploadImag in /var/www/craiglist/php/v3/lib/remote/HttpCommandExecutor.php on line 241
The text was updated successfully, but these errors were encountered: