samedi 10 février 2018

how to identify an element id in waitforelementpresent in Selenium IDE

I have a test script that calls a report from cloud storage. Sometimes it takes a few seconds, sometimes a lot longer. The test then needs to export the data using a drop down menu. The menu is not available until the full report page renders.

Is there a way to test that the drop down menu exists before triggering the subsequent export menu item. The exports work provided the page renders in time so the elements do exist.

The log refers to the 2 stage dropdown menu items as

[info] Executing: |click | id=reportViewMenu | |

[info] Executing: |click | css=#_xdoFMenu03 > div.floatMenuContainer > div.floatMenuShadow > ul.masterMenu.floatMenuItems > li > div > a.masterMenuItem.item > div.itemTxt | |

The IDE commands are

<tr>
    <td>waitForElementPresent</td>    this doesn't work
    <td>id=reportViewMenu</td>
    <td></td>
</tr>
<tr>
    <td>click</td>
    <td>id=reportViewMenu</td>        this does work
    <td></td>
</tr>

Thank you for your help.




Aucun commentaire:

Enregistrer un commentaire