splinter icon indicating copy to clipboard operation
splinter copied to clipboard

Equivalent of jquery closest()?

Open lsemel opened this issue 13 years ago • 1 comments

I'm trying to figure out a way to get the nearest ancestor that matches a certain class of an element, which in jQuery you'd do with closest() http://api.jquery.com/closest/ but I don't see anything in the API (I'm using phantomjs) that lets me do that. Haven't had any luck putting together an xpath expression.

lsemel avatar Sep 04 '13 15:09 lsemel

Closing, since this isn't a splinter question.

General xpath questions are better answered on sites like StackOverflow.

javascript-error avatar Jul 21 '21 14:07 javascript-error