Selenium - Handle file upload dialog
I don't know how to interact with the file upload dialog.Can someone please suggest the steps?
Selenium can't handle the modal OS file picker. So the trick is to use sendkeys to set the file input element. (this element sometimes might be hidden when there's some fancy uploader ui drawn on top of it, like a Flash uploader for supporting web cams)
Originally Posted by RamyaSar
This link will have some code examples on how to setup a file detector and handle setting a file input.
Sauce Labs: Selenium File Upload: Best Practices & Tips