Palak Shah
Well-known member
- Joined
- Apr 29, 2020
- Messages
- 97
- Programming Experience
- 1-3
Hello Everyone,
I have one html form which has label with checkbox option but also has "a" tag, so with the XPath instead of clicking on checkbox it clicks on link attached to that label
HTML Element
I have one html form which has label with checkbox option but also has "a" tag, so with the XPath instead of clicking on checkbox it clicks on link attached to that label
HTML Element
HTML Element:
<div class="form-group">
<label for="chkTermAndCondition">
I have read and agree to the
<a id="lnkTermsAndCondition" href="javascrip:void(0);">terms and conditions.</a>
</label>
</div>
XPath tried:
//*[@for='chkTermAndCondition'] - clicks on link of "a" tag
//div[@id='sellerInformationDiv']/div[3]/div/label - clicks on link of "a" tag