The dropdown has the attribute ng-model ="text.abc"
and displays the text text="Test"
:
<md-select id="select_55" class="ng-pristine ng-untouched ng-valid ng-valid-required" required="" aria-label="queuingModel: SKILL_GROUP" ng-model="text.abc" md-on-close="vm.changeQueue(vm.queue.resourcePoolType)" name="resourcePoolType" tabindex="0" aria-disabled="false" role="listbox" aria-expanded="false" aria-multiselectable="false" aria-owns="select_container_56" aria-required="false" aria-invalid="false" style="">
<md-select-value id="select_value_label_51" class="md-select-value">
<span>
<div class="md-text ng-binding">SKILL_GROUP</div>
</span>
<span class="md-select-icon" aria-hidden="true"></span>
</md-select-value>
This code cannot be used:
element(by.model('text.abc')).$('[value=" ?"]').click();
As I do not have a value for the dropdown.
What would be the Protractor code to interact with this dropdown in such a scenario?