Unable to locate element with contains text xpath

Hi, I am trying to locate the following element with contains text xpath

//div[contains(text(), "Tender Collab Screen")]

Does someone knows what am I doing wrong here? I am working on a cloud based application.

Try this one instead:

//div[contains(normalize-space(), 'Tender Collab Screen')]

@Brandon_Hein

Awesome, thank you so much. Can you let me know how does this normalize space affect the locator?

In this case, I think that there may have been some whitespaces somewhere in that <div> that you just couldn’t see that were being counted as “text”. normalize-space strips this extra whitespace before matching.