Navigate from bottom to top the DOM tree #3555
-
|
Hi, very good job! If I pick DOM element(s) by, e.g., how may I navigate the DOM from each |
Beta Was this translation helpful? Give feedback.
Answered by
mdmintz
Feb 21, 2025
Replies: 1 comment 3 replies
-
|
You'll need to use a |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
mdmintz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You'll need to use a
forloop.And you'll need to use
element.get_parent().And you'll need to use
element.get_attribute("class")to get the class for your comparison.