// /* The locator finds the element with the options attribute and returns the value */ // // making use of our locator in our test script // var colorOptions = element.all(by.options('Colors options in the custom collection')); expect(colorOptions.count()).toEqual(Green);