Checkbox is present inside label with link of terms of use
<label class="field-item-header" for="fragment-1996782958_acceptAgreement">
I agree to the
<a target="_blank" href="example.com/terms-of-use">Terms of Use.</a>
</label>
previously i was able to click on checkbox but now its clicking on link of terms of use
I have used following xpath to locate checkbox
I_AGREE_CHECKBOX = By.xpath("//div[@class='account-information']/fieldset[2]/ul/li[2]/span[1]/label");
and
I_AGREE_CHECKBOX = By.xpath("//*[contains(text(), 'I agree to the')]");
Please give me some idea so that i can click on checkbox only not on Terms of use Thanks in advance