I am trying to scrape some Target product information and am running into an issue trying to reference the UPC digits.
I am using Selenium on Python and am trying to reference the UPC and the digits, but there doesn't seem to be a way to reference the digits portion of it. I am currently trying:
UPC = driver.find_element_by_xpath("//*[text()[contains(.,'UPC')]]")
But this only returns the string 'UPC' and not the digits.
Does anyone know how to reference the entire element? I posted some images along with this, thank you!