How to attach images using Selenium IDE?
1 answer
First enter the file upload ID (note that in the solution I am assuming there is a submit button whose ID is Btn_Click to which the file will be uploaded.)
<input type="file" name="abc" class="input" size="15" id="xyz"/>
Then your selenium test case will look like this
<tr>
<td>open</td>
<td>/Your page where to upload file</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>id=xyz</td>
<td>/path of your file to be uploaded</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>css=btn_click</td>
<td></td>
</tr>
+1
source to share