Selector to read text from the first SPAN


#1

I’ve got this from the web page, and I want to get the text “This is what I need” from the first only. But I couldn’t get the selector just pick that one, tried different way and at the end still got all the text from all including the one under . I am using Chrome as browser.

Element:

  • Choose the new* This is what I need Tooltip Must mention.  
  • Selector (I need to pass the label_id as it’s dynamic):
    “”

    Anyone can help me with this? Thank you!