title: make protractor wait for the select element to get populated with options on selecting a option in another Select element
body: <p>I got two Select elements, select1 and select2. Selecting a option in select1 will populate with options in select2. I'm able to select the option in select1, but want to make protractor wait for the options to get populates in select2 and then select a option in select2 element.</p>
  
  <p>i tried to use </p>
  
  <pre><code>    selectOrganizationElement.all(by.tagName('option')).filter(function(element){
          return element.getText().then(function(text){
              return text === value1;
          });
      }).click().then(function(){
          selectSchoolElement.all(by.tagName('option')).filter(function(element){
              return element.getText().then(function(text){
                  return text === value2;
              });
          }).click();
      });
  </code></pre>
  
  <p>but its not able to select.</p>
  
  <p>any Suggestions?</p>