title: Getting specific element value with Selenium and Python
body: <p>I am automating shopping site, where at last I want to print the total bill. I have tried the following code but error shown that no such attribute is known.  Code here is here:</p>
  <pre><code>price = driver.find_element_by_xpath('//*[@id=&quot;price-overview&quot;]/div[1]/div/div/div[1]/div[2]/dl/dd')
                                  
                                      
   price_value = price.getAttribute(&quot;US $&quot;);
   print(&quot;The total price is: &quot;+ str(price_value));
  `  [![highlighted in image too][1]][1]
  </code></pre>
  <p><a href="https://i.stack.imgur.com/l4IgJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/l4IgJ.png" alt="image is here" /></a></p>