Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
General run error when Exist fails
#1
Not Solved
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


Messages In This Thread
General run error when Exist fails - by msacks - 02-08-2019, 12:36 AM
RE: General run error when Exist fails - by Ankur - 02-08-2019, 02:12 AM

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 3,451 02-07-2017, 12:28 AM
Last Post: sparkwanted
  General Object Error(Find Object Error) akhandesh 1 3,419 02-24-2016, 01:05 PM
Last Post: sindhus
Rolleyes The test run cannot continue due to an unrecoverable error neerndg123 3 8,435 09-17-2015, 08:27 PM
Last Post: ananthakumarbe
  HI, i'm having a run time error ,please help? Awzar 0 2,397 01-24-2015, 06:52 AM
Last Post: Awzar
  Browser("BrowserName").Back gives General Run Error... deminiek 13 17,689 12-10-2013, 12:53 AM
Last Post: rizvia

Forum Jump:


Users browsing this thread: 1 Guest(s)