06-13-2013, 10:38 PM
Hi
I need some help in writing QTP code for a new window that has some Java components. This window has a Panel (JPanel) in the center of it with some text labels arranged one below the other and a arrow pointer > on the right of each text label. When I click on arrow > it opens a submenu with options. It looks something like this
Test >
Repair >
Close >
I am finding it difficult to write automation script for this. When I record, I see code If I spy on it I get a long hierarchy and it shows the above options at the bottom of the hierarchy as
What best I can do in this case?
I need some help in writing QTP code for a new window that has some Java components. This window has a Panel (JPanel) in the center of it with some text labels arranged one below the other and a arrow pointer > on the right of each text label. When I click on arrow > it opens a submenu with options. It looks something like this
Test >
Repair >
Close >
I am finding it difficult to write automation script for this. When I record, I see code
Code:
[b]JavaWindow("Ticket").JavaInternalFrame("Status ").JavaObject("JPanel").Click 45,10,"LEFT". [/b]
Code:
[b]JavaObject:Jpanel->JavaStaticText:Test[/b]
What best I can do in this case?