Vote count: 0
I've got a web page that dynamically generates content. As a result, I don't know far up the tree I need to travel, but I know the id of a target child element. I would like to travel up and find the first h1 tag above it, I simply don't know how far up I have to go to access the h1 tag, but I know it will be an xxxxParent of the tag. Is there an efficient way to achieve this?
asked 17 secs ago
Selenium Traverse Up the DOM an unknown length in Java
Aucun commentaire:
Enregistrer un commentaire