下面是html代码,我需要帮助创建CSS选择器,我尝试使用XPath,但一些控件是动态的页面,使Xpath每隔一个控制选择不同。需要帮助创建CSS选择器的单选按钮组为硒的webdriver
<buttons-radio class="btn-group form-100 form-right ng-isolate-scope" options="trueFalseOptions" model="vehicle.CustomEquipment" data-toggle="buttons-radio">
<label class="btn btn-default btn-sm form-50 ng-scope ng-binding" analytics-event="primary driver Yes" analytics-on="click" ng-click="activate(option)" ng-repeat="option in options" ng-class="{active: isActive(option)}">Yes </label>
<label class="btn btn-default btn-sm form-50 ng-scope ng-binding active" analytics-event="primary driver No" analytics-on="click" ng-click="activate(option)" ng-repeat="option in options" ng-class="{active: isActive(option)}">No </label>
请添加HTML代码段,然后更多的信息,你的问题。 –
我已经添加了代码,不确定它为什么不显示给你。当我编辑代码已经在那里时, – Surabhi