
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
UFT 12.52 Exist() seems is not working in overloaded method
When I use Exist() method inside an overloaded method then it always returns FALSE like the object doesn't exist eventhough same object can be clicked or highlighted. Does anyone encountered this situation?
Public Function MyClick(objControl)
objControl.Highlight() -> highlight the object OK
If objControl.Exist(10) Then
'do something
Else
'failure -> goes on the failure branch
End If
objControl.Click -> working OK
End Function
RegisterUserFunc "Link", "Click", "MyClick"
Browser("CreationTime:=0").Page("title:=.*"). Link("html id:=some_id").Click()
Thanks


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Not sure if this is a 12.52 specific issue, however try registering your funciton name to something different than "Click". I.e. call the function "MyClick" instead of "Click" from the class persepective; see if there's a change.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
I am also facing the same issue. When you are passing object to a function which returns the object and using Exist method is not working. any solutions.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
anyone got solution for this. When using descriptive programming and sending that object to exist (user defined function) Exist method is not working. I have tested in UFT 12.52

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Try this way and see if it works -
If objControl.Exist(10) = True Then
' do something
Else ...
Accept as solution/Give Kudos to the author if the piece of information answered/helped you to solve your problem.
All the thoughts here are mine not related to my employer nor anyone.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi, Even am facing similar issue, with UFT 12.52 and 12.53, However there is no issue with UFT 12.5.
Did anyone able to resolve the issue with Object.Exist in UFT 12.52 or UFT 12.53
Thanks