Uploading files via setValue does not work #2649
Unanswered
Michelle-Bettencourt
asked this question in
Help Needed
Replies: 3 comments
-
|
Are you sure it's a problem with nightwatch? Seems like your file is not found: |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Yes I do because the file is in that spot I added this to the beginning and got ** test: true |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Is it an issue if i am hosting it on a different port? node-chrome-debug: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
Sample test
-->
sampleTest.js
Run with command
Verbose output
debug.log
✔ Element <input#file-upload> was visible after 265 milliseconds. Response 500 POST http://hub:4444/wd/hub/session/2877e607577d116af5c82eac98155af3/element/2761fbc7-2549-4e27-94bf-a9356664b6af/value (185ms) { state: 'invalid argument', sessionId: null, value: { systemInformation: "System info: host: '8cb26b8bfd85', ip: '172.23.0.3', os.name: 'Linux', os.arch: 'amd64', os.version: '5.4.39-linuxkit', java.version: '1.8.0_282'", message: 'invalid argument: File not found : /home/docker/app/test.pdf', error: [ ' (Session info: chrome=89.0.4389.82)', "Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'", "System info: host: '8cb26b8bfd85', ip: '172.23.0.3', os.name: 'Linux', os.arch: 'amd64', os.version: '5.4.39-linuxkit', java.version: '1.8.0_282'", 'Driver info: driver.version: unknown' ] }, status: 61 } Error while running .setElementValue() protocol action: An unknown error has occurred – invalid argument: File not found : /home/docker/app/test.pdf ✖ Testing if element <div#uploaded-files> contains text 'test.pdf' in 5000ms - expected "contains text 'test.pdf'" but got: "element could not be located" (5108ms) at Object.File Upload (/home/Configuration
nightwatch.json
Your Environment
nightwatch --versionnpm --versionyarn --versionnode --versionBeta Was this translation helpful? Give feedback.
All reactions