Automation Framework Error: Cannot read properties of null (reading 'findTabIndexByID')
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2025 12:42 AM
Hello,
In ServiceNow Automation Framework, I created one script in which we create a CIM record and when it is moved to Assess state the approval will triggered under the Approvers Related List. And we need to approve that by navigating to sysapproval table and opening that record.
When I created ATF test script for this, I face issue "Cannot read properties of null (reading 'findTabIndexByID')" while setting field values (State is Approved). For this I already keep timeout 40 sec, also tried impersonating user but still I faced same issue.
Please check attached image for reference. In that you will see approval record will be opened and state is requested. I want that state as Approved.
If anyone find solution let me know.
Thanks!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a week ago - last edited a week ago
Just a thought for this issue. We have experienced this as well for a Set Value and it appeared to be a simple browser caching issue.
When we closed the runner and ATF tabs, re opened and ran the test, the error did not appear.
Sorry - this worked for me a couple of times but it doesn't appear to always fix the issue.