我正在使用codeception尝试单击,选择我的表单中的选项。问题是,当我尝试检查复选框时,它会选择隐私信息href链接,与我希望它选择的复选框相对。Codeception select选项
<div class="row">
<div class="myclass">
<div class="mb">
<label class=" custom-checkbox"><input type="checkbox" id="from_accept" name="fform[accept]" class="custom-checkbox__input" value="1">
\t <span class="custom-checkbox__text">
::before
"I agree to terms "
\t <a href="[there is a link here]">terms and conditions</a>
"and some more text here "
\t <a href="[there is a link here]">privacy info</a>
"."
::after
\t </span>
</label>
</div>
</div>
</div>
我已经试过的Xpath & CSS选择器,但没有运气,甚至悬停让我发现,它看到的只是最后的href锚链接。
你能告诉我们你的工作吗?谢谢 – DebanjanB