Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

Click is not executed on an Adobe Flex object.

Click is not executed on an Adobe Flex object.

Are there any workarounds to a "Click" action on a Flex button failing on playback?
 
Sometimes the open agent may be able to point to the object of Flex application but may not actually click on it.

The workaround in this situation would be to use a co-ordinate click.


Testcase clickwithco()
RECT windowshape =MyWindow.MyButton.GetRect()
Integer x = windowshape.xPos
Integer y = windowshape.yPos
Integer w =MyWindow.MyButton.width
Integer h =MyWindow.MyButton.height
MyWindow.MyButton .Click (1, x+w/2, y+h/2)

The above testcase successfully clicks on the object (button) on playback.

Old KB# 23612

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2013-02-15 19:37
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.