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 do I avoid using indexes in my scenario?
OS: MAC
Browser: Firefox 11, Chrome 17
Sahi Build: 2011-07-19
So, I have a table. The table has a table header in this format
Now, the problem is the exact header is set to display:none and replicated in the table. This is done in our app so that the headers can be sticky (position appears as fixed) during a page scroll.
Because of this, the tableheaders are identified like so: _tableHeader("Serial[1]")
Is there any UI relation that I can use to avoid the indexing that Sahi creates for the headers?
Sam
Browser: Firefox 11, Chrome 17
Sahi Build: 2011-07-19
So, I have a table. The table has a table header in this format
<thead class="header-original"><tr><th>Serial</th></tr></thead>
Now, the problem is the exact header is set to display:none and replicated in the table. This is done in our app so that the headers can be sticky (position appears as fixed) during a page scroll.
<thead class="header" style="display:none"><tr><th>Serial</th></tr></thead>
Because of this, the tableheaders are identified like so: _tableHeader("Serial[1]")
Is there any UI relation that I can use to avoid the indexing that Sahi creates for the headers?
Sam
Comments
Hi Sam,
You could use the classname of the header, which in your case is _tableHeader("Serial[1]") = _tableHeader("header")