'Upload a picture in Selenium IDE with file type extensions

The code is to upload a picture during import and to pick only .jpeg, .jpg , .png , .bmp file. When there are other files (like .txt, .doc, .pdf) selenium IDE code should not pick it and display error message.

Test description : Upload invalid file type having other extensions like .doc or .txt or .pdf and get an error message

Error message is displayed ’Error uploading incorrect file type'

Attached is the code i am using currently enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source