Hey guys, I'm running a script using SELENIUM-IDE for Mozilla Firefox for web automation. In the script, I'm searching the "next" button on the webpage and would like to know if it's available or not. If so, Click on it and go to the next page, if not restart the script. When going on a page without the next button I get an error and a
"Test Case Failed"
Commands I Use:
<tr>
<td>storeElementPresent</td>
<td>css=a._3a693.coreSpriteRightPaginationArrow</td>
<td>bool</td>
</tr>
<tr>
<td>echo</td>
<td>'${bool}' </td>
<td></td>
</tr>
<tr>
<td>gotoIf</td>
<td>'${bool}' == false</td>
<td>STARTSCRIPT</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>css=a._3a693.coreSpriteRightPaginationArrow</td>
<td></td>
</tr>
In the Log results I get:
[info] Executing: | storeElementPresent | css=a._3a693.coreSpriteRightPaginationArrow | bool |
[info] Executing: | echo : 'true'
[info] Executing: | gotoIf | '${bool}' == false | STARTSCRIPT |
[info] Executing: | clickAndWait | css=a._3a693.coreSpriteRightPaginationArrow | |
[error] Element css=a._3a693.coreSpriteRightPaginationArrow not found
[info] Test case failed
Any ideas guys?