ServiceNow ATF(Assert Text on Page (Custom UI))

Soumya12
Kilo Contributor

In ATF while using 'Assert Text on Page (Custom UI)' test step to assert a Text which contains single quotes, test is getting failed stating not on page even when the text is present on the page.

For example : In portal there is text "Welcome to Portal! We're excited to have you join our team" .

I tried to Assert this text with the proper test step getting failure saying 

FAILURE: Text 'Welcome to Portal! We're excited to have you join our team' was not on the page.

As an work around i also tried with escape character still did not work.

Does any one faced this issue? if there is any solution please let me know.

 

16 REPLIES 16

Arkesh Kumar
Giga Guru

Hi Soumya,

 

Have you opened custom UI page before this step?

Thank you,

Arkesh

Hi Arkesh,

Yes, I have opened the required page then only used assert text step, it is working fine when the text is without single quote. 

The problem is when the text consist of single quote.

Regards,

Soumya.R