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.
How to locate cells in two similar tables
Hi,
I have a web page like this:
If I want to locate Standard V1.0, I can use:
But I don't find any method to locate Lite V1.0
I've tried:
and some others, but with no luck.
Can any help me to locate these cells? thanks
I have a web page like this:
Standard<br>
<table id="row1" class="its">
<tr><th>Version<th>Detail
<tr><td>V1.1<td><a href="?v=V1.1&t=std">Detail</a>
<tr><td>V1.0<td><a href="?v=V1.0&t=std">Detail</a>
</table>
Lite<br>
<table id="row2" class="its">
<tr><th>Version<th>Detail
<tr><td>V1.1<td><a href="?v=V1.1&t=lite">Detail</a>
<tr><td>V1.0<td><a href="?v=V1.0&t=lite">Detail</a>
</table>
And I want to locate the "Detail" link for different Version and lite/standardIf I want to locate Standard V1.0, I can use:
_link("Detail", _near(_cell("V1.0")), _in(_table("row1")))
But I don't find any method to locate Lite V1.0
I've tried:
_link("Detail", _near(_cell("V1.0")), _in(_table("row2")))
_link("Detail", _near(_cell("V1.0")), _in(_byClassName("its[2]", "TABLE")))
and some others, but with no luck.
Can any help me to locate these cells? thanks
This discussion has been closed.
Comments
The web page should be:
To locate "Detail" for standard V1.0
_link("Detail", _near(_cell("V1.0")), _in(_table("row1")))
To locate "Detail" for Lite V1.0 :
_link("Detail", _near(_cell("V1.0[1]")), _in(_table("row2")))
Regards
Sumitra
Thanks for your quick reply,
It works.