I have a html code like this:
<div class='one two three and etc.'>
<div>
<div>
<div class='my_target'>
</div>
</div>
</div>
</div>
and I need to find div with class="my_target"
whose great-grandfather has class containing a word "two", for example. I tried an expression like this:
//div[../../../[contains(@class,'two')]]
but it doesn't work! Can somebody help me?