Trying to verify if an element contains a specific text, but the keyword Element Should Contain
does not find the text even if I explicitly put in the xpath attribute that it contains the text. However the keyword Wait Until Page Contains Element
works.
Ran the script below and got the following results
#this was successful
Wait until Page Contains Element xpath://div[@id="header"]//span[contains(text(), "text")]
#this resulted to: should have contained text 'text' but its text was ''
Element Should Contain xpath://div[@id="header"]//span[contains(text(), "text")] text