18 January 2026:


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 check the state of a check box

minmin Members
edited November -1 in Sahi - Open Source
Hi,

I am having a problem with checking the state of a check box, actually it is not a check box but of a div element, here is the html code:

<td id="x-auto-122" class="x-grid3-col x-grid3-cell x-grid3-td-checker x-grid-cell-first " rowspan="2" style="width: 18px;" role="gridcell">
<div class="x-grid3-cell-inner x-grid3-col-checker" rowspan="2" unselectable="on">
<div class="x-grid3-row-checker"> </div>
</div>
</td>

and I want to check that the state of check box "x-grid3-row-checker" is checked by default.

Any solution for this? Thanks in advance.

Comments

  • Hi min,

    Kindly follow the below URLs:

    http://sahi.co.in/forums/viewtopic.php?id=138

    http://sahi.co.in/forums/viewtopic.php?id=2670

    Let me know if this solves your issue.

    Regards
    Sumitra
  • Hi Sumitra,

    Thanks for you quick response, I have checked those URLs before, but it didn't work for me as the object is identified as _div("x-grid3-row-checker"), it is not a standard DOM checkbox. So I don't know how to verify whether it is checked or not. Any solution for this?

    Thanks,

    Best Regards,

    Min
  • Hi min,

    Let me know what the accessor is being identified as when the division is checked?

    Also, check if it is replaced by another div?

    Regards
    Sumitra
  • Hi Sumitra,

    Sorry for the late reply, the accessor is always being identified as _div("x-grid3-row-checker") no matter whether it is checked or not.

    Thanks,

    Min
Sign In or Register to comment.