title: xpath does not get the web element which has multiple classes
body: <p>I am very new at Java and Selenium so my apologies in advance if my question sounds a bit primary.</p>
  
  <p>I am using Selenium and Java to write tests. But have issue with finding elements. I know some other ways to find this WebElement, </p>
  
  <p>but why this:</p>
  
  <pre><code>WebElement we1 =driverChrome.findElement(By.xpath
  ("//div[contains(@class,'elfinder-cwd-filename ui-draggable') and @title='project.CPG']"));
  </code></pre>
  
  <p>can not get this:</p>
  
  <pre><code>&lt;div class="elfinder-cwd-filename ui-draggable" title="project.CPG"&gt;project.CPG&lt;/div&gt;
  </code></pre>
  
  <p>and shows this error:</p>
  
  <pre><code>Exception in thread "main" org.openqa.selenium.NoSuchElementException: no 
  such element: Unable to locate element:{"method":"xpath","selector":"
  //div[contains(@class,'elfinder-cwd-filename ui-draggable') and @title='project.CPG']"}
  </code></pre>
  
  <p>this works:</p>
  
  <pre><code>WebElement we1 = driverChrome.findElement(By
  .xpath("//div[contains(@class,'elfinder-cwd-filename') and @title='project.CPG']"));
  </code></pre>
  
  <p>but these ones do not work:</p>
  
  <pre><code>WebElement we1 = driverChrome.findElement(By
      .xpath("//div[contains(@class,'ui-draggable') and @title='project.CPG']"));
  
  
  WebElement we1 = driverChrome.findElement(By.
  xpath("//div[@class='elfinder-cwd-filename ui-draggable' and @title='project.CPG']"));
  </code></pre>
  
  <p>Sounds weird, this:</p>
  
  <pre><code>WebElement we = driverChrome.findElement(By
  .xpath("//div[contains(@class,'combine-red')]"));
  </code></pre>
  
  <p>just worked for this:</p>
  
  <pre><code>    &lt;div class="leaflet-marker-icon combine-red-off leaflet-zoom-hide leaflet-
  clickable" tabindex="0" style="margin-left: -17px; margin-top: -19px; left: 
  149px; top: 302px; z-index: 10304; transform: rotate(450deg);"&gt;&lt;/div&gt;
  </code></pre>