I have a question about selenium webdriver.
Everything is working fine but there is one element I don't get to work.
That's the html tag when i inspect the element:
<img src="https://s3.amazonaws.com/xxx/website/icons/rulesets/imgname.png" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="White Animals">
CSS Selector is always the same but the "data-original-title"
is always different. I want to look for the text after data-original-title. "White Animals" in this example.
try:
element = WebDriverWait(driver, 1).until(expected_conditions.presence_of_element_located((By.CSS_SELECTOR, "CSSSELECTOR"), "White Animals"))
except:
print("Not available")
else:
print("found")
Can somebody tell me what i am missing?
The img src is also changing so it's maybe easier to parse the img src?
I hope somebody can help.