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
'failure -> goes on the failure branch
objControl.Click -> working OK
RegisterUserFunc "Link", "Click", "MyClick"
Browser("CreationTime:=0").Page("title:=.*"). Link("html id:=some_id").Click()
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.
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
Try this way and see if it works -
If objControl.Exist(10) = True Then
' do something
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.
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