title: Can't click to Customize link when div+link together with FakeAnchor class using selenium web driver
body: <p>Can't click to Customize link when div+link together with FakeAnchor class using selenium web driver</p>
  
  <p>In my Ajax application, we have dropdown + link (Customize) together in div and i want to click to Customize link. I have locator and which was working fine for Customize link with old selenium but it doesn't with latest web driver. Can anyone please point me the problem or suggest something to make it work?</p>
  
  <h1>Expected:</h1>
  
  <blockquote>
    <p>Clicking to Customize link should open respected option (it actually opens dialog).</p>
  </blockquote>
  
  <h1>Actual:</h1>
  
  <blockquote>
    <p>Below locator clicks to dropdown button instead of Customize link due to such a complex page DOM which has no actual href or anchor tag.</p>
  </blockquote>
  
  <h1>Locator:</h1>
  
  <pre><code>css=div[id$='_repeatDesc'][class='FakeAnchor']
  </code></pre>
  
  <h1>Html:</h1>
  
  <pre><code>&lt;div id="zcs1_repeatDesc" class="FakeAnchor" style="cursor: pointer;"&gt;Customize&lt;/div&gt; 
  </code></pre>
  
  <h1>Code:</h1>
  
  <pre><code>webDriver().findElement(By.cssSelector("div[id$='_repeatDesc'][class='FakeAnchor']")).click();
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/Qwz6y.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Qwz6y.png" alt="UI element and DOM"></a></p>