title: how to find element with specific class attributes using css selector or any other locator selenium python
body: <p>Am trying to find an element using attribute in the same class,below is the element of the</p>
  <pre><code>div class=&quot;outcome-pricedecimal &quot; data-markettypecategory=&quot;00000000-0000-0000-da7a-000000580001&quot; data-pd=&quot;1.66&quot;&gt;1.66 &lt;/div&gt;
  </code></pre>
  <p>I want to locate it using the data-pd=&quot;1.66&quot;
  it the decimal number i need, because i want it to find the element if the decimal has changed to my prefered value(e.g finding data-pd when =1.05)
  I tried finding it using this codes</p>
  <pre><code>driver.find elements_by_xpath(&quot;//div[contains(number()
  </code></pre>
  <p>driver.find_elements_by_css_selector('div.data-pd=&quot;1.05)&quot;and not:(.outcome-pricedecimal) (.data-markettypecategory=&quot;00000000-0000-0000-da7a-000000580001)&quot;]')[0].click()</p>
  <p>driver.find_element_by_css_selector(div.1.01)</p>
  <p>thanks as you answer and help...</p>