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.
what does _byText do?
what does _byText do?
I was trying to use that as
_byText("some text found in table first row","<td>");
it shows null..
any help.
I was trying to use that as
_byText("some text found in table first row","<td>");
it shows null..
any help.
Tagged:
This discussion has been closed.
Comments
Can i access any tags by its class name instead of id?
for example:
<td id="descId" class="formTxt>
_cell("descId")- This syntax is for row id.
Is there a way to access html element by its class name.
Let me know please.
In fact you can use _cell("some text found in table first row") if that is what you want.
Add this to the end of sahi/htdocs/spr/concat.js
Open sahi/config/normal_functions.txt and add _byClassName at the end of it.
Restart Sahi and you can use _byClassName("formTxt", "td");
Let me know if that works for you and I will add it to the next build.
_click(_byClassName("sysButn","input"));
Thanks.