Skip to content

Navigate from bottom to top the DOM tree #3555

Closed Answered by mdmintz
matteocacciola asked this question in Q&A
Discussion options

You must be logged in to vote

You'll need to use a for loop.
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.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@matteocacciola
Comment options

@matteocacciola
Comment options

@matteocacciola
Comment options

Answer selected by mdmintz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants