下面是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