I tried to make an selenium app that scrapes the product name & price from a website, and send it to discord as a webhook. The error I get is in title.
product = driver.find_element_by_xpath("""//*[@id="details"]/h1""")
embed.add_field(name='Product:', value=str(product).text, inline=False)
Thats the line where I am getting the error. ^ But for example if I don't put .text it works on discord, but it doesn't give it as text and it shows like:
<selenium.webdriver.remote.webelement.WebElement (session="239269ee47dcdd86ba8f2ebb717ec15a", element="77b2212a-ccd4-4e5c-9a96-f0a931097a2d")>