DOM object fireevent, highlight
I am trying to do mouse over a menu and select the submenu, QTP sometime does the job and some times not, so tried using DOM objects but fire event on DOM object dint work.
did some research no luck and wanted to know
1. how to convert the DOM objects to QTP objects
2. How to perform mouse over operation on DOM object
3. how to highlight the DOM object
4. how to use class as one of the property to identify DOM, it shows error as class is the build in objects in QTP
Any quick help on this would be highly appreciated.
Have you tried enabling Replay type for mouse, this will help particularly on mouse actions.
You can create a DOM object using .Object method, for detail analyzing on page objects use developer tools this will help you to understand better.
Yes i have enabled replay type as mouse but fails some time, wanted to learn DOM wanted to know how to achieve the 4 objectives...
Please try with replay settings, Hope below sample code will help you -
Setting.WebPackage("ReplayType") = 2
Setting.WebPackage("ReplayType") = 1