0

Right now, i am doing an UIveri5 automation test. when clicking the button, windows file system dialog pop up, i would like to know how can i input the file that i want to upload and click the upload button to go back to the web page. I have try the ways here, but all the ways didn't work. if someone know about this situation, please give me some advises, thanks a lot.

walter wu
  • 39
  • 7

1 Answers1

0

File upload is handled by the selenium/webdiver and happens the same way in every selenium-based framework - locate the input of type file and enter the path to the file. Then click the submit button. You can use uiveri5 control locators to find the upload control and just chain with by.css('input[type="file"]) to locate the input. Locate the submit button in a similar way.

Max
  • 1,313
  • 1
  • 9
  • 13