I have the following html structure

```
<div class="block">
    <span>
        <span class="location">::before</span>
        <a href="example.com">New York</a>
    <span>
    <span>
        //some other elements
    </span>
    //n number of spans
</div>

```

I need to find where is `span` with class `location` and get `a` element, particularly its text content, i.e. **New York**. 
The problem is the span with the class `location` may be in n-th span, so I need to find it, and then get following anchor.