Reputation: 257
When the File Upload window pops up with the cursor already focused on the field, is there a way to make Protractor sendKeys to that, instead of going through the whole absolute path file select stuff?
I'm using AngularJS/Jasmine framework. Thanks!
Upvotes: 1
Views: 217
Reputation: 473833
Nope, the upload dialog you see is not under selenium's control. You have to avoid this popup being opened in the first place.
A common approach is to send keys containing an absolute path to a file to upload to a specific input
with type="file"
.
Upvotes: 3