I am looking for ideas to trigger the actions for fly-out menus using QTP.
I am testing a Web App using QTP. The application has “cascaded” or hierarchical fly-out menu.
e.g. Options->Preferences
While recoding QTP recognizes the end point on the Menu hierarchy (say “Preferences”).
But while running the test, firing the WebElement("Preferences").Click does not work.
If I call Link("Options").FireEvent ("onmouseover") it pulls down the Menu, and after that I can highlight the Preferences item, but calling the click even after pulling down the menu fails to trigger the menu action.
Any Ideas to trigger the click action on these menu items would be useful.
Regards,
Adarsha
For the reason of loosing multitasking while QTP is executing, I did not implement with Motti’s suggesiton. So instaed I ended up going through the HTML code to see which mouse events are expected by the java script. It turns out i need to call the below sequences:
This trick works really nice, but the risk here is if they change any thing drastically (say instaed of litening to Click if they use onMouseDown) I need to tweak the test script.