title: How to find element in selenium python using id and class in div
body: <p>How to find element in selenium python using both id and class in div and then click it:</p>
  
  <pre><code>&lt;div id="abc" class="xyz" style="" role="presentation"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>I am using the following code:</p>
  
  <pre><code>arrow = driver.find_element_by_xpath('//div[@id="abc"][@class="xyz"]')
  arrow.click()
  </code></pre>
  
  <p>But I am getting error as:</p>
  
  <pre><code>NoSuchElementException: Message: Unable to locate element: {"method":"xpath","selector":"//div[@id=\"abc\"][@class=\"xyz\"]"}
  </code></pre>