I have a <button>
where I'm opening a file browser on click, by triggering a click on a hidden <input type="file"
>. (I listen on the change
event on the input to get access to the file(s) chosen by the user.)
Using Protractor, how can I check that the file browser opened on the initial click on the <button>
?
The reason why I'm not exposing <input type="file"
> to the user, is to have more control over style, which is possible with <button>
.