I have, for example, the next XPath query:
//div[span=\"something\"]/parent::div/child::div[@class=\\\"someClass\\\"]
I want to use this XP
I'm not sure about the parent::div clause, but without it it should look like this:
parent::div
$('div[span="something"] div.someClass');