Hello,
#issue 1:
while working with the nightwatch.js, I tried to test the upload of the file. When I used the commands .setValue('//input[@type="file"]', require('path').resolve(__dirname + '/kinetic.stl')), it should have uploaded the file, but it doesn't. The idea is that a div is used to create a dropzone. If the dropzone is clicked then a dialog box appears and we can select the file from there. I assumed that there is an hidden input field, which I found far below the closing tag of the div.
I am using xquery selector and I tried to set value of the input field in the iframe but all in vain.
`.frame('someid')
.setValue('//input[contains(@name,"project name")]', 'Nightwatch Project')
.pause(5000)
.frame(null)`
It says unable to locate element: "//input[contains(@name,"project name")]" using: xpath
Can you help me with these issues?
sincerely,
sabin bhandari