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