2
ドロップダウンリストから注文番号を選択する方法。 ページに同じような2つのドロップダウンがあります。ng-repeatテキストを選択しようとすると、他のドロップダウンから一致するテキストが選択されます。 テキストも等しいです。ロボットフレームワークを使用してドロップダウンメニュー値を選択する方法は?
HTML: -
<select ng-repeat="select in controller.getSelects() track by select.key" ng-attr-name="select-{{select.key}}" name="select-liftId">
<option value="ALL" ng-if="select.default" class="ng-scope">ORDER NUMBER</option>
<option ng-repeat="v in select.options" value="cdfd8775-1114-462b-8a47-bc7a93e0d6ab" ng-selected="v['_id'] === controller.values[select.key]" class="ng-binding ng-scope"> 3</option>
<option ng-repeat="v in select.options" value="4f790134-31ab-4212-b152-c5c4101fbe5c" ng-selected="v['_id'] === controller.values[select.key]" class="ng-binding ng-scope"> 2</option>
<option ng-repeat="v in select.options" value="8cfb28d3-955c-45b1-877f-56b67edad6ff" ng-selected="v['_id'] === controller.values[select.key]" class="ng-binding ng-scope"> 1</option>
私がこれまで試したどのような:
click element repeater=v in [email protected][2]
click element xpath=//option[text() =${label})]
click element xpath=//option[contains(text(),'${label}')]
私は非常に..感謝を任意の助けをいただければ幸いです。
更新日: これが今の私を助けたが... クリック要素は// [5] /オプション[3]