无法在java selenium中选择md-select列表中的不同元素

时间:2017-10-12 08:22:50

标签: java selenium

下面是md-select列表的html我可以点击它但是当它扩展时我不能选择不同的元素

<div id="select_container_156" class="md-select-menu-container md-active md-clickable" aria-hidden="false" style="display: block; left: 529px; top: 259px; min-width: 1068.67px; font-size: 21px;">
<md-select-menu class="_md" style="transform-origin: 518.333px 32px 0px;">
<md-content class="_md">
<!-- ngRepeat: vendor in vendors -->
<md-option id="select_option_178" class="ng-scope md-ink-ripple" data-ng-value="vendor" data-ng-repeat="vendor in vendors" tabindex="0" role="option" aria-selected="true" aria-checked="true" value="[object Object]" selected="selected">
<div class="md-text ng-binding">                              DSI MFG                            </div>
<div class="md-ripple-container" style=""/>
</md-option>
<!-- end ngRepeat: vendor in vendors -->
<md-option id="select_option_179" class="ng-scope md-ink-ripple" data-ng-value="vendor" data-ng-repeat="vendor in vendors" tabindex="0" role="option" aria-selected="false" aria-checked="true" value="[object Object]">
<div class="md-text ng-binding">                              Phase 1 TR1                            </div>
</md-option>
<!-- end ngRepeat: vendor in vendors -->
<md-option id="select_option_180" class="ng-scope md-ink-ripple" data-ng-value="vendor" data-ng-repeat="vendor in vendors" tabindex="0" role="option" aria-selected="false" aria-checked="true" value="[object Object]">
<div class="md-text ng-binding">                              GREEN MARKET                            </div>
</md-option>
<!-- end ngRepeat: vendor in vendors -->
<md-option id="select_option_181" class="ng-scope md-ink-ripple" data-ng-value="vendor" data-ng-repeat="vendor in vendors" tabindex="0" role="option" aria-selected="false" aria-checked="true" value="[object Object]">
<div class="md-text ng-binding">                              KRUTHIKA STORE                            </div>
</md-option>
<!-- end ngRepeat: vendor in vendors -->
</md-content>
</md-select-menu>

当我们点击md-select列表

时,下面是html
{{1}}

0 个答案:

没有答案