Selenium IDE Tip - Continue if only element is present else not
In the following code, first check element is present or not.
If not present, then exist from the loop to the label - exit, else continue the commands - verify Text
This really helps when we want to run specific TC or not??
<tr>
<td>storeElementPresent</td>
<td>${category_header_obj}</td>
<td>present</td>
</tr>
<tr>
<td>gotoIf</td>
<td>storedVars['present']==false</td>
<td>exit</td>
</tr>
<tr>
<td>verifyText</td>
<td>${category_header_obj}</td>
<td>Categories</td>
</tr>
In the following code, first check element is present or not.
If not present, then exist from the loop to the label - exit, else continue the commands - verify Text
This really helps when we want to run specific TC or not??
<tr>
<td>storeElementPresent</td>
<td>${category_header_obj}</td>
<td>present</td>
</tr>
<tr>
<td>gotoIf</td>
<td>storedVars['present']==false</td>
<td>exit</td>
</tr>
<tr>
<td>verifyText</td>
<td>${category_header_obj}</td>
<td>Categories</td>
</tr>