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:
price = driver.find_element_by_xpath('//*[@id="price-overview"]/div[1]/div/div/div[1]/div[2]/dl/dd')
price_value = price.getAttribute("US $");
print("The total price is: "+ str(price_value));
` [![highlighted in image too][1]][1]

"US $"? As another user said, post a snippet of the HTML tags.get_attribute()notgetAttribute