Search Posts

Author: Pija

How to select drop down list when object/value is always changeable in protractor

Anyone can help me how to call the drop down list for protractor? The highlighted object is not fixed value/object. Means it always changed. The below code is not working for me: element(by.model(‘residential’)).$(‘[value=”object:353″]’).click(); AngularJS as per below: <select class=”form-control ng-pristine ng-valid ng-not-empty ng-touched” ng-model=”residential” id=”ResidentStatus” ng-options=”status as status.Name for status in residentialStatus” style=””> <option value=”” class=”” selected=”selected”>Please Select Resident Status option label=”Malaysian” value=”object:353″>Malaysian</option> <option label=”Non-Malaysian” value=”object:354″>Non-Malaysian</option> </select> I hope someone can give an idea for […]