I'm trying to extract the value of the alt attribute from the img tag.
I want to track title, but not able to track from img
tag. I have written the below code to track.
try:
Title = webdriver.find_element(By.XPATH, "(//div[@data-dyn='titleArtImage'])").text
print("Title: " + Title)
except:
TITLE = "missing title"