Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
General run error when Exist fails
#1
I'm running a script that includes this code:

    If SAPGuiSession("SAPGuiSession").SAPGuiWindow("Person 1 Entry").Exist(1) Then
        ...
    Else
        ...
   End If

When the object exists, there is no problem, but when it does not (and that's supposed to happen on some occasions, going to the Else clause), I get a general run error.

I tried looking at the error with a MsgBox. The error code is -2147417851.


I'm running UFT version 14.51 build 1566 on a Windows 7 machine.

Thanks for your help.
Reply
#2
It would help if you can paste the code that goes inside else block.

Also check at what statement in else block UFT throws the error.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [UFT 12.52/VBScript] Test object exist, is visible and enabled before take an action sparkwanted 0 4,198 02-07-2017, 12:28 AM
Last Post: sparkwanted
  General Object Error(Find Object Error) akhandesh 1 4,146 02-24-2016, 01:05 PM
Last Post: sindhus
Rolleyes The test run cannot continue due to an unrecoverable error neerndg123 3 9,571 09-17-2015, 08:27 PM
Last Post: ananthakumarbe
  HI, i'm having a run time error ,please help? Awzar 0 3,043 01-24-2015, 06:52 AM
Last Post: Awzar
  Browser("BrowserName").Back gives General Run Error... deminiek 13 21,131 12-10-2013, 12:53 AM
Last Post: rizvia

Forum Jump:


Users browsing this thread: 1 Guest(s)