Object Identification Fail locating object during replay

  • KM02487842
  • 20-Jul-2016
  • 20-Jul-2016

This document has not been formally reviewed for accuracy and is provided "as is" for your convenience.

Summary

After record the business process successfully an error appear on the replay and it is that some objects like tabs, cells are not getting recognize on the replay and the error retrieve is "Object identification failed" on the console of the browser shows a message like this: TypeError: Object expected {anonymous}(TypeError: Object expected),printStackTrace(#object),{anonymous}(TypeError: Object expected),{anonymous}(TypeError: Object expected,"Catch exception in TestObject cmd execution"),{anonymous}("Click",#object,#function),{anonymous}(#object),{anonymous}(#object),{anonymous}(#object),{anonymous}(#object),{anonymous}(#object,1), ,[Event type="agent/evaluate-arguments" target="[object Window]"] Catch exception in TestObject cmd execution

Error

When TruClient locates an object in the application it scrolls to the object location in order to ensure the object is visible before trying to identify it. In the customer application an exception was raised while trying to perform the scroll operation.

Cause

Exception observed when facing this issue:
TypeError: Object expected
{anonymous}(TypeError: Object expected),printStackTrace(#object),{anonymous}(TypeError: Object expected),{anonymous}(TypeError: Object expected,"Catch exception in TestObject cmd execution"),{anonymous}("Click",#object,#function),{anonymous}(#object),{anonymous}(#object),{anonymous}(#object),{anonymous}(#object),{anonymous}(#object,1),
,[Event type="agent/evaluate-arguments" target="[object Window]"]
Catch exception in TestObject cmd execution

Fix

Solution:
Added error handling to avoid the exception and ensure the document is scrolled to the right location
 
File Changed:
<LoadRunner installation>\dat\WebIE\RRE\content\infra\StdClasses.js
 
To apply this hotfix on LR12.02 machine -
 
1.       Take a backup of the file <LoadRunner installation>\dat\WebIE\RRE\content\infra\StdClasses.js
2.       Rename the attached file back to “StdClasses.js”
3.       Copy the attached and replace the file StdClasses.js.
4.       Do the same for the LoadGenerator machines in the folder <LoadGenerator installation>\dat\WebIE\RRE\content\infra\StdClasses.js
 
This issue was resolved in 12.50.