Automation Testing

UFT Sprinter: Error Object Does Not Support this Property

By Test Guild
  • Share:
Join the Guild for FREE

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 UFT Sprinter 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!

A bearded man with blue glasses and a black-and-white jacket smiles at a microphone in a studio setting.

About Joe Colantonio

Joe Colantonio is the founder of TestGuild, an industry-leading platform for automation testing and software testing tools. With over 25 years of hands-on experience, he has worked with top enterprise companies, helped develop early test automation tools and frameworks, and runs the largest online automation testing conference, Automation Guild.

Joe is also the author of Automation Awesomeness: 260 Actionable Affirmations To Improve Your QA & Automation Testing Skills and the host of the TestGuild podcast, which he has released weekly since 2014, making it the longest-running podcast dedicated to automation testing. Over the years, he has interviewed top thought leaders in DevOps, AI-driven test automation, and software quality, shaping the conversation in the industry.

With a reach of over 400,000 across his YouTube channel, LinkedIn, email list, and other social channels, Joe’s insights impact thousands of testers and engineers worldwide.

He has worked with some of the top companies in software testing and automation, including Tricentis, Keysight, Applitools, and BrowserStack, as sponsors and partners, helping them connect with the right audience in the automation testing space.

Follow him on LinkedIn or check out more at TestGuild.com.

  1. 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.

    Regards,
    RAJ

  2. 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
    ReadFromFile=””
    Set fso=Nothing
    Exit Function
    End If
    Set fso = CreateObject(“Scripting.FileSystemObject”)
    Set f = fso.OpenTextFile(fileName)
    var = f.ReadAll
    f.Close
    Set f=Nothing
    Set fso=Nothing
    ReadFromFile=var
    End Function

  3. Hey Joe,
    I am getting this error and have changed the key in registry and UFT is still throwing a error with this function. Is it possible that there is a additional registry entry that needs to be done?

    Error:

    Object doesn’t support this property or method: ‘Setting.WebPackage’
    Line (360): ” Setting.WebPackage(“Replay Type”)=2″

    Function:

    Function click_Button(OR_BtnName)
    Err.clear
    Setting.WebPackage(“ReplayType”)=2
    If JavaWindow(“APP”).JavaApplet(“ViewerApplet”).JavaButton(OR_BtnName).Exist(2) Then
    JavaWindow(“APP”).JavaApplet(“ViewerApplet”).JavaButton(OR_BtnName).highlight
    btnName =JavaWindow(“APP”).JavaApplet(“ViewerApplet”).JavaButton(OR_BtnName).GetROProperty(“developer name”)
    JavaWindow(“APP”).JavaApplet(“ViewerApplet”).JavaButton(OR_BtnName).Click
    If Err.number <= 0 Then
    call StoreSummaryReportArray("Pass","Click on Button","successfully click on the button :-" & btnName )
    Call gProcReportExecutionStatus(micPass,"Click on Button","successfully click on the button :-" & btnName )
    Else
    StrErrdESC = Err.description & Err.number
    call StoreSummaryReportArray("Fail","Click on Button","Unable to click on the button :-" & StrErrdESC)
    Call gProcReportExecutionStatus(micFail,"Click on Button","Unable to click on the button :-" & StrErrdESC)
    End If
    End If
    'Call Func_Error()
    Setting.WebPackage("ReplayType")=1
    End Function

Comments are closed.

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}

30 AI Terms Every Tester Should Know

Posted on 04/24/2025

Why This AI/ML List Matters to You (and Your Testing Career) AI and ...

5 Top Model Context Protocol Automation Tools (MCP Guide 2025)

Posted on 04/09/2025

What is Model Context Protocol (MCP) Model Context Protocol (MCP) is an open ...

What is TDD (Test Driven Development)

Posted on 04/05/2025

What is Test-Driven Development (TDD)? Test-Driven Development is a software development approach that ...

TestGuild Automation Podcast

Unable to retrieve track data

TestGuild Automation Podcast         TestGuild Automation Podcast        
Unable to retrieve track data           Unable to retrieve track data          
More
Speed: 50% Speed: 75% Speed: Normal Speed: 125% Speed: 150% Speed: 175% Speed: Double Speed: Triple
Back 15 seconds
Forward 60 seconds
More
more
    Speed: 50% Speed: 75% Speed: Normal Speed: 125% Speed: 150% Speed: 175% Speed: Double Speed: Triple
    Back 15 seconds
    Forward 60 seconds
    Currently Playing