Technically correct, but, I think, quite unorthodox, try this xpath instead `//a[./span[@class="boxHeader"]]`