Wednesday, June 14, 2017

Selenium - Uploading file when input is invisible

Do you have problems simulating file upload in case the input is invisible?


You can make the element visible by using javascript in your code. Make the element visible and then call SendKeys to enter the path into the upload file input.



Happy testing and... make it green, becomes a dream :).


No comments:

Post a Comment

Popular Posts