2

The code line is:

class="ng-binding ng-scope" ng-bind="item.name">Soap

Its a drop down and I want to select the value 'soap'.

alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195
Rozmeen Ali
  • 107
  • 1
  • 10

1 Answers1

0

You can use getAttribute on the selected element :

expect(element(by.cssContainingText('option', 'Soap')).getAttribute('class')).toContain('ng-bind');
Zakaria
  • 14,892
  • 22
  • 84
  • 125