ServiceNow ATF(Assert Text on Page (Custom UI))
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-06-2021 12:11 AM
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.
- Labels:
-
Automated Test Framework
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-06-2021 02:37 AM
Hi,
I just wanted to verify whether you are able to detect normal text without quotes
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-06-2021 02:43 AM
Yes Ankur,
Text that are without single quote i could verify successfully.
When the text has quotes then it is getting failed.
Regards,
Soumya.R
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-06-2021 03:13 AM
Can you try to use 2 backslash
Welcome to Portal! We\\'re excited to have you join our team.
OR this
Welcome to Portal! We/\'re excited to have you join our team.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-06-2021 03:43 AM
Tried both no luck.
FAILURE: Text 'Welcome to Portal! We\\'re excited to have you join our team' was not on the page.
FAILURE: Text 'Welcome to Portal! We/\'re excited to have you join our team' was not on the page.
Regards,
Soumya.R
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-06-2021 03:51 AM
Can you give double quotes and check once
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader