I am trying to write a locator where the next text descendant is returned. I wont know the text. The following xpath works:
//*[@id='myChart']//label[contains(text(),"Show:")]/following::div[4]
but I dont like the div[4] as this could easily change. The element is the first div type descendant under show that contains text. Any suggestions?
A