I am using Protractor for end to end testing in Angular application. I am trying to click on option in select box, but i have folowing error Element is not currently visible and may not be manipulated.
I have this part of html:
<select class="form-control" ng-required="true" ng-model="selectedAction.begStatus"
ng-options="obj as obj.name for obj in allBegStatuses">
</select>
And I have this line of code in Protractor test:
element(by.xpath('//select/option[text()="Draft"]')).click();
I want to click on option with value "Draft". Do you know maybe what is the problem?
element.all(by.options('obj as obj.name for obj in allBegStatuses'))
; This link can show you how to apply a filter in the option list. – flaviomeira10