我正在尝试单击一个复选框,以下是我尝试过的一些操作:
// label [string()=('通知用户')] / i
// div [@ class ='b-checkbox']
// div [@ class ='b-checkbox'] // label // input [@ type ='checkbox']
<div class="b-checkbox"><label class=""><input type="checkbox" value="on"><!-- react-text: 563 -->Notify user<!-- /react-text --><i class="b-custom"></i></label></div><div class="b-body b-mh-medium"><div class="b-body b-mv-small"><fieldset class="b-form-group"><label class="currency-input-label" for="currency-input-field"><span class="currency-input-label" disabled=""><span>When should we notify you that funds are low?</span></span><br><span class="b-prepend">$</span><input type="number" class="b-inline b-w-medium b-form-control" id="currency-input-field" value="" disabled=""><span class="b-text-base currency-input-grey-text">Remaining</span></label><span class="b-help b-hide"></span><span class="b-error b-hide"></span></fieldset></div></div>
但是我得到了元素不易出错的错误。有什么建议吗?预先感谢。