I want to count options in select attribute but my test gets failed here is my spec:
it('should count the number of option', function()) {
expect(element(by.id('sorting_options')).all(by.tagName('option').count())).toBe(3);
}
it give me Error:
C:\wamp\www\First-angular-App>protractor conf.js Starting selenium standalone server... [launcher] Running 1 instances of WebDriver Selenium standalone server started at http://192.168.100.9:12708/wd/hub [launcher] Error: C:\wamp\www\First-angular-App\protractorSpec\spec.js:37 it('should count the number of option',function()){ ^