With the help of this SO question I have an almost working xpath:
//div[contains(@class, \'measure-tab\') and contains(., \'someText\')]
Ho
You could use the xpath :
//div[@class="measure-tab" and .//span[contains(., "someText")]]
Input :
someText someText2
Output :
Element=' someText2 '