title: Multiple Conditions while finding a web element in selenium web driver
body: <p>the inspect element Code looks as below :</p>
  
  <pre><code>*&lt;*th class="k-header k-filterable k-with-icon" data-field="Status" data-index="8" data-title="Status" scope="col" style="overflow: visible; white-space: normal;font-weight: bold;width:70px;vertical-align:top;" data-role="columnsorter" id="grdAutoLaborOps_active_cell" aria-describedby="grdAutoLaborOps_active_cell"&gt;
      &lt;a class="k-grid-filter" href="javascript:void(0)" tabindex="-1"&gt;
      &lt;*span class="k-icon k-filter"&gt;
           &lt;/span&gt;&lt;/a&gt;&lt;*a class="k-link" href="/tracs/tracs/LaborOps/AutoLaborOps_Read?grdAutoLaborOps-sort=Status-asc" tabindex="-1"&gt;Status&lt;/a&gt;
  &lt;/th&gt;
  </code></pre>
  
  <p>There is a filter icon on the 10 th column of the grid ,I wanted to click that filter icon , if i used code as below </p>
  
  <pre><code>        driver.findElement(By.cssSelector("th.k-header.k-filterable.k-with-icon[data-title=Status]")).click();
          driver.findElement(By.cssSelector("span[class*='k-icon k-filter']")).click();
  </code></pre>
  
  <p>the first line code is clicking on 10th column which will set as ascending and descending order of 10th column.
  the 2nd line code is clicking on the 1st column filter Icon .My Intension is to click on the 10th column filter icon </p>
  
  <p>please Help</p>