Because I am very inexperienced in these things I cannot seem to understand how to use setFilesToUpload to upload files for my test case.
In the pages I am testing the user has to first click on an area in a modal which then opens the native file selection window for the current OS.
I am assuming that this area has to be defined as a selector first. How would I use this command to send files and then click the Open button in the native file window (Windows 10)?
If I simply use
.setFilesToUpload(selector, './_1.,mp3') with no click on the area statement first then I get
'The specified selector does not match a file input element.'
If I use
.click(selector) and then
.setFilesToUpload(selector, './_1.,mp3') then I get the same error.
If I use `.setFilesToUpload(selector('input'), './_1.,mp3') I also get the same result