I need to check if we something with on the page as a trigger:
data-id="false_5511971198499@c.us_DBC6E6D07C76B179C26A40D689B2AEB2"
But, I need to check only "data-id="false_"
because the rest could be anything.
I tried to create:
element = driver.find_element_by_xpath("[data-id='False']")
But didn't worked. And I don't know how to continue like if there is this element we need to print(ok)
.
Could you help me?
Thank you!