title: Selenium WebDriver ExtJS drop-down
body: <p>I'm trying to find list of element in ExtJS drop-down. I found a good solution on stackoverflow, though it doesn't work for me. </p>
  
  <p>Solution in C#:</p>
  
  <pre><code> public void ClickComboItem(IWebElement input, string target)
          {
              input.Click();
              IList&lt;IWebElement&gt; comboItems = _driver.FindElements(By.XPath("//*[contains(@class, 'x-combo-list') and contains(@style, 'visibility: hidden;')]//*[contains(@class, 'x-combo-list-item')]"));
              comboItems.First(item =&gt; item.Text.Trim() == target).Click();
          }
  </code></pre>
  
  <p>From <a href="https://i.stack.imgur.com/9BOLq.png" rel="nofollow noreferrer">here</a>.</p>
  
  <p>Part which I need to automate look like this:</p>
  
  <pre><code>&lt;div class="x-ie-shadow" id="ext-gen546" style="z-index: 12004; filter: progid:DXImageTransform.Microsoft.alpha(opacity=50) progid:DXImageTransform.Microsoft.Blur(pixelradius=4); WIDTH: 351px; display: none; height: 301px; top: 186px; left: 1187px;"/&gt;
  &lt;div class="x-layer x-combo-list " id="ext-gen544" style="z-index: 12005; position: absolute; width: 350px; height: 302px; visibility: hidden; font-size: 12px; top: -10000px; left: 0px;"&gt;
  &lt;div class="x-combo-list-inner" id="ext-gen545" style="width: 348px; height: 300px; overflow: auto;"&gt;
  &lt;div class="x-combo-list-item" _nodup="30813" viewIndex="0"&gt;
  &lt;div class="x-combo-list-item" _nodup="30813" viewIndex="1"&gt;
  </code></pre>
  
  <p>Actual click on the pointer is executed and I can see see drop-down list on the page, though comboItem returns '0' results. I assume I should adjust xPath correctly for my case, though it seems for me that it should work, as soon as structure is very similar with an example from the post I mentioned above. </p>