I am testing a hybrid application using JSP and Flex 3. I and having difficulties getting QTP to record the doubleclick action on a FlexLabel object. It has no issues performing the Click operation.
Browser("ShiftSelect (VDev1)").FlexApplication("myAlternativeContent"). FlexCanvas("calendarViews").FlexCanvas("mgrCalWeek View").FlexLabel("Open").Click
Any suggestions would be welcome.
My experience with Flex/QTP so far only allowed one click on a FlexLabel. Never seen a DoubleClick.
I am not even sure what would a DoubleClick do differently than a single click. Its just a label.
"God doesn't play dice" - Einstein
The DoubleClick action is not declared by default for FlexLabel components.
The declaration can be found in the %Program files%/Adobe/Flex 3 Plug-in for Mercury QuickTest Pro/TEAFlex.xml file.
To add a new operation you should add an <Operation> declaration in the file for it.
<Operation Name="DoubleClick" PropertyType="Method" ExposureLevel="CommonUsed">
<Implementation Class="flash.events::MouseEvent" Type="doubleClick"/>
... <!-- Fill arguments here -->
See the "Instrumenting existing events" section of the help file for more details: http://livedocs.adobe.com/flex/3/htm...12.html#201866
DoubleClick Event properties are available here : http://livedocs.adobe.com/flash/9.0_fr/A...ml#DOUBLE_CLICK