In my test case i want to check weather a checkbox is already checked or not.
If not checked then i will not proceed else i will proceed.
here is the code
<tr>
<td>storeValue</td>
<td>//div[@id='insurance_type_selected']/div[@class='prod_type_list']/p[@class='groupTtl']/label[@for='prod_insurance_types_1']/input[@type='checkbox']/</td>
<td>val</td>
</tr>
<tr>
<td>echo</td>
<td>${val}</td>
<td></td>
</tr>
<tr>
<td>gotoIf</td>
<td>storedVars['val']=='on'</td>
<td>true</td>
</tr>
During execution this error is showing
[info] Executing: |gotoIf | storedVars['val']=='on' | true |
[error] Unknown command: 'gotoIf'
What is causing this error?