title: Detecting Drop down with Selenium WebDriver
body: <p><a href="http://i.stack.imgur.com/L4WUv.jpg" rel="nofollow">http://i.stack.imgur.com/L4WUv.jpg</a></p>
  
  <p><a href="http://demos.telerik.com/aspnet-ajax/grid/examples/overview/defaultcs.aspx" rel="nofollow">Link to Grid</a></p>
  
  <p>I'm trying to detect the different drop downs on this page (depicted by the filters by the text boxes). The problem i'm having is that it seems that the filters all have the same ids. I can get the webdriver to find the initial filter button but not target the options in the drop down. </p>
  
  <ul>
  <li>Note the filters I'm talking about are the ones from the funnel buttons. For example contains, isEqual, between etc *</li>
  </ul>
  
  <p>This is wrong but an example</p>
  
  <pre><code>it('Should filter grid to -contain Civic', function() {
      browser.element(by.id('ctl00_ContentPlaceHolder1_RadGrid1_ctl00_ctl02_ctl03_FilterTextBox_Model')).sendKeys("civic");
      browser.element(by.id('ctl00$ContentPlaceHolder1$RadGrid1$ctl00$ctl02$ctl03$FilterTextBox_Model')).click(); 
      browser.element(by.xpath("//*[contains(text(), 'Contains')]")).click();
  })
  </code></pre>