<div _ngcontent-c15="" class="col-md-12 col-sm-12 col-xs-12 p-0">
<div _ngcontent-c15="" class="row">
<div _ngcontent-c15="" class="col-md-12 p-0 mb-2">
<h5 _ngcontent-c15="" class="form-header m-0">System</h5>
</div>
</div>
<div _ngcontent-c15="" class="row">
<div _ngcontent-c15="" class="form-group col-md-12 p-0">
<!---->
<div _ngcontent-c15="" class="form-check radio p-0">
<input _ngcontent-c15="" class="form-check-input" type="radio">
<label _ngcontent-c15="" class="form-check-label">All</label>
</input>
</div>
<div _ngcontent-c15="" class="form-check radio p-0">
<input _ngcontent-c15="" class="form-check-input" type="radio">
<label _ngcontent-c15="" class="form-check-label">None</label>
</input>
</div>
</div>
</div>
</div>
这是系统标签的html代码,带有ALL和NONE按钮,但还有许多带有ALL和none按钮的选项卡。无法为电台选择精确的xpath
答案 0 :(得分:1)
请尝试以下XPath表达式:
//div/h5[text()='System']/ancestor::div/div/div/div/input/label[@class='form-check-label' and text()='All']
希望有帮助。