UFT-QTP-Sprinter: Error Object does not support this property or method

Ranorex Automation for Everyone

QTP/Sprinter JavaScript error

Are you trying to record against a web application using either QTP or Sprinter and keep getting an error message “Errors on this webpage might cause it to work incorrectly”?

Are most of the errors “Object doesn’t support this action” or Object doesn’t support this property or method”?

No worries – turns out this is a known issue.

Reason for this error

This error is usually caused by a configuration setting in the Sprinter and QuickTest Pro. The JavaScript error is triggered when QTP tries to hook into the DOM’s mutation methods. This causes bad things to happen with the QTP engine tries to hook into element types that don’t use the DOM mutation methods.

This insanity can be fixed by changing a registry setting.

Quick Fix

To fix this issue you need to make a change to the following QTP registry setting:

  • Click on Start>Run and enter: regedit. (If you get a User Controls dialog click ‘Yes’)
  • Navigate to following registry key:
  • HKEY_CURRENT_USER\SOFTWARE\Mercury Interactive\QuickTest Professional\MicTest\Packages\WebPackage\Settings
    • Change the DWORD value “EnableDOMChangesNotifications” to 0
    • Restart QTP

    The issue should now be resolved!

Raj - April 3, 2013

I am new to QTP and I am using QTP 11.0 for functional testing.

I have a scenario where I have QTP is installed (and Scripts) are on one machine (Say Machine1) and AUT is in another machine (Say Machine 2)
and both Machine 1 & Machine 2 are in same network.

I want to run my qtp scripts such a way that Script must run on Machine 1 but Action must be performed on Machine 2.
I am using Win XP in both machines.
Please let me know the procedure.


Kd - April 4, 2013

Does UFT support Win 7 OS?

Deb - May 17, 2013

Hi Joe

On reading an ini file and returning the contents back to the calling function I obtain this error

filedata = ReadFromFile( “c:\testcase.ini”) — Error here

I enetered in the function ReadFromFile at the time of debugging and on exiting thefunction I get the error :
Object doesn’t support this property or method: ‘filedata ‘

Public Function ReadFromFile( fileName)
Dim var
Set fso = CreateObject(“Scripting.FileSystemObject”)
If Not fso.FileExists(fileName) Then
Set fso=Nothing
Exit Function
End If
Set fso = CreateObject(“Scripting.FileSystemObject”)
Set f = fso.OpenTextFile(fileName)
var = f.ReadAll
Set f=Nothing
Set fso=Nothing
End Function

KM - June 20, 2013

Where can I learn more about using QTP to test JavaScript objects?

Click here to add a comment

Leave a comment: