Forum Discussion

chunkylover53's avatar
chunkylover53
New Contributor
14 years ago

object doesnt' support this......blah blah

I'm trying to do a real simple thing here and it wont' work.

I want to call one unit script from another and it keeps giving me an error that says "Object doesn't support this property or method"

I have these two units and that's it. Yes the unit reference is setup.

Any help will be much appreciated.



'USEUNIT GMS_Daemon_Running

 

Option Explicit  



Sub Main()



    Call EP_RunREMSmokeTest()



End Sub



Sub EP_RunREMSmokeTest()

   



    Call GMS_Daemon_Running()    

       

End Sub








_________________________________________________________________________________________________



Sub GMS_Daemon_Running()

  'Runs the "iexplore" tested application.

  Call TestedApps.iexplore.Run

  'Checks whether the 'innerText' property of the Aliases.iexplore.pageRemoteEnergyManagement.formForm2.panel.panelContentdiv.table.cell2.panelNormal.textnode object contains 'GMSDaemon Running'.

  Call aqObject.CheckProperty(Aliases.iexplore.pageRemoteEnergyManagement.formForm2.panel.panelContentdiv.table.cell2.panelNormal.textnode, "innerText", 6, "GMSDaemon Running")

End Sub

6 Replies

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor
    The problem is that your unit name and your subroutine name are the same so you need to explicitly indicate which one you're calling.



    Sub EP_RunREMSmokeTest()

        



        Call GMS_Daemon_Running.GMS_Daemon_Running()    

            

    End Sub




    Give that change a try and see if it works for you.
  • Hi,

    I tried to use exists method in test complete to verify text on webpage like welcome to xyz. so it was like Object.exsits and when i run it, it gives following error message. Object doesnot support this property or method. Please find attached screenshot
  • Hi,

    I tried to use exists method in test complete to verify text on webpage like welcome to xyz. so it was like Object.exsits and when i run it, it gives following error message. Object doesnot support this property or method. Please find attached screenshot

  • Hi Sam,


     


    Please post here the problematic line where you get this error.


     


    BTW, there is no screenshot in your previous post.