18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
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.
querying row_id in jqgrid
Hi All,
Looking for some help in a Sahi script where I use a delete button in a jqgrid.
ie: _click(_button("deleteRow_99"));
My issue is the row_id may differ, the row id comes from a table in a mySQL db.
A row number may differ as my db grows but for testing purposes another field on the row would always have the same value.
What would I need to do so on play back the row number is queried and Sahi deletes the correct row?
Thanks in advance,
djwhiley
Looking for some help in a Sahi script where I use a delete button in a jqgrid.
ie: _click(_button("deleteRow_99"));
My issue is the row_id may differ, the row id comes from a table in a mySQL db.
A row number may differ as my db grows but for testing purposes another field on the row would always have the same value.
What would I need to do so on play back the row number is queried and Sahi deletes the correct row?
Thanks in advance,
djwhiley
Comments
Is the other field visible on the UI or is it in the database?
Assuming that other is visible and is in a table cell, you could use something like this:
_button(/deleteRow/, _near(_cell("Other field")));
Regards,
Narayan