When clicking on a button in my app with UFT, the app crashes.
Question ID: 108210
0
0

I’m trying to click on a button in my application, but when I do a click operation, it locks my AUT up. Is there any way around this lock up?

Marked as spam
Posted by (Questions: 227, Answers: 22)
Asked on March 21, 2018 3:38 pm
257 views
Answers (1)
0
Private answer

Try using the DeviceReplay object instead and bypass the normal UFT/Object interation. It's gotten me around some similar problems as the one you are describing. For some reason, using DeviceReplay sometimes gets around some type of hang that normal object interaction via built-in methods seems to cause. Just modify your code to get the coordinates of the object as in my example below:

x=.GetROProperty(''abs_x'')
y=.GetROProperty(''abs_y'')

Set obj=CreateObject(''Mercury.DeviceReplay'')
obj.MouseMove x,y,0

Marked as spam
Posted by (Questions: 2, Answers: 477)
Answered on March 21, 2018 3:41 pm

EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top