0
votes

im new to selenium ide. i need to automate the testing of an export function which i am unable to automate.

  1. Click Export and Window will pop up (done)
  2. Select the Save File radio button which is the 2nd option. (only able select window)
  3. It will prompt the directory which i will save
  4. Press Ok button

Click here for image of Popup Window

My Codes

<tr>
    <td>click</td>
    <td>id=reportExport</td>
    <td></td>
</tr>
<tr>
    <td>waitForPopUp</td>
    <td></td>
    <td>30000</td>
</tr>
<tr>
    <td>selectWindow</td>
    <td></td>
    <td></td>
</tr>
1

1 Answers

0
votes

Unfortunately, Selenium IDE cannot handle download confirmation dialogs. So it is impossible to press the OK button. But you can still test the export function by bypassing the download confirmation dialog to automatically download the file. The steps are found here.

Although in my opinion as well as this article, it is not a very good idea to automate file downloading.