<span class="" data-aura-rendered-by="2565:0">Active</span>
<!--render facet: 2567:0-->
<!--render facet: 2568:0-->
</label> == $0
<input type="checkbox" checked="checked" defaultchecked="true" id="2202:0" data-aura-rendered-by="2206:0" data-interactive-lib-uid="11">
</div>
Can anybody help me to identify an xpath for a checkbox. The HTML is dynamic and the page will change.
I have identified the xpath which is as follows:
//span[.='Active']/../../input
But with this xpath when the position of the active checkbox is changed then the script is not able to identify it.
How can I handle this?