With the help of this SO question I have an almost working xpath:
//div[contains(@class, \'measure-tab\') and contains(., \'someText\')]
Ho
You can change your second condition to check only the span element:
...and contains(div/span, 'someText')]
If the span isn't always inside another div you can also use
...and contains(.//span, 'someText')]
This searches for the span anywhere inside the div.