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.
Sorting in Sahi
Hi,
Does Sahi supports sorting????
I mean, we hagve a table and hyperlinks for all the column headers. If we click on teh column header for the first time, all the items in the column header are sorted in ascending order. If we click again then, the items are sorted in descending order.
Code or suggestions for testing the above scenario please?
Thanks,
Sameer
Does Sahi supports sorting????
I mean, we hagve a table and hyperlinks for all the column headers. If we click on teh column header for the first time, all the items in the column header are sorted in ascending order. If we click again then, the items are sorted in descending order.
Code or suggestions for testing the above scenario please?
Thanks,
Sameer
Comments
_click($("#sample_table th:contains('Column1') a:contains('Column1')")[0]);
here "sample_table" is table element id and "Column1" is the sortable column. You can use the firebug to see how tag are organized for the table and you can form the jquery selector for your requirement.
am having a column with different names which are not in an order.
when i click on the column header, the data will get sorted ascendingly.How to validate whether the data is in ascending order or not using sahi?
can anyone help please....?
Thanks,
Murali krishna reddy.