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 limit element search to TBODY? There is no _tbody() function
mattkruse
Members
I want to find the first _link within a table (with a given class name), but only within the TBODY tag, ignoring the THEAD altogether.
How can I accomplish this?
How can I accomplish this?
Answers
If you have an identifier of the table that you mentioned,
you can use something like :
_link(0, _in(table("your_identifier").getElementByTagName("TBODY")[0]));
Else,
if you have the identifier of a cell in the table,
you can use something like:
_link(0,_in(_parentNode(_cell("your_identifier"),"TBODY")));
Let me know if it doesn't work for you.
Regards.