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 get ID of any cell?
Hi All,
In my application, I have radio buttons followed by their names. Using code line: _getText(_table($tableid).rows[$i].cells[$j]) I am able to get thier UI names. Suppose any radio button has its name as "xyz".
Sahi identifies this name as _cell("xyz[1]") (index no. at tailing end is dynamic). How can I get this cell identifier as "xyz[1]"?
I am using code line:
_set($name,_getText(_table($tableid).rows[$i].cells[$j]));
_set($id,_cell($name,_in(_table($tableid))).attributes.value);
But it's not working. Kindly help in solving this problem.
Regards,
nagar
In my application, I have radio buttons followed by their names. Using code line: _getText(_table($tableid).rows[$i].cells[$j]) I am able to get thier UI names. Suppose any radio button has its name as "xyz".
Sahi identifies this name as _cell("xyz[1]") (index no. at tailing end is dynamic). How can I get this cell identifier as "xyz[1]"?
I am using code line:
_set($name,_getText(_table($tableid).rows[$i].cells[$j]));
_set($id,_cell($name,_in(_table($tableid))).attributes.value);
But it's not working. Kindly help in solving this problem.
Regards,
nagar
Comments
You can use this:
_cell("xyz[" + $i + "]");
Regards
Sumitra