18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

to check the entry using a specific title

vaishnavivaishnavi Members
edited November -1 in Sahi - Open Source
I added an entry for masters in my application and the script displays success. How to check whether the script got added or not by using a specific title or word ?

My HTML code looks like this:
<tr>
<td><label><input type="checkbox" name="list[]" id="checkbox" value="28" onclick=" chkselcount('list[]');"/></label></td>
<td>SC76</td>
<td>SN276</td>
<td>TYPE</td>
<td>JHD</td>
<td><a href="javascript:;" onclick="edit_function('conarea', 'stores-supplier', '28', '1')"><img src="layouts/default/inventory/images//edit-icon.png" width="15" height="15" border="0" /></a>  
<a href="javascript:;" onclick="delete_function('conarea', 'stores-supplier', '28','Supplier', '1')"><img src="layouts/default/inventory/images//del-icon.png" width="15" height="15" border="0" /></a></td>

</tr>
If suppose I have to find the entry using the code SC76 in the above example. what should i do?

Comments

  • Hi vaishnavi

    loop over the checkbox.lenght and get the checkbox.options[$index].text to compare it with "SC76".
    Does this help?

    Regards
    Wormi
Sign In or Register to comment.