NOTICE: Our Community is moving. Get more information. Updated information on a New Login Process
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.