This step failed because the client error 'onSubmit script error: ReferenceError: g_scratchpad is no
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2025 12:56 PM
Hi,
When i execute test script of A-2 form of portal through ATF tool in ServiceNow then i got below error message
"This step failed because the client error 'onSubmit script error: ReferenceError: g_scratchpad is not defined
function () { [native code] }' was detected on the page being tested. See failing Test Logs. To ignore these errors in the next test run, use 'Add all client errors to warning/ignored list' links."
Could you please how to solve this problem.
Please help me. Thank you in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2025 10:06 PM
are you getting same error while submitting using manual testing?
did you run the test after adding that error to Ignore list?
Did it run fine then?
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
