Quantcast
Channel: Micro Focus QTP (UFT) Forums - All Forums
Viewing all articles
Browse latest Browse all 1793

[UFT] SwfObject as Toolbar: select item without coordinates

$
0
0
Hi,
I have a Toolbar with menu.

If I use the "record operation", UFT creates this code:
Code:
SwfWindow("MyApp").SwfObject("_Form1_Toolbars_Dock_Area_Top").Click 827,9
SwfWindow("MyApp").SwfWindow("SwfWindow_2").SwfObject("SwfObject").Click 56,19

I would not use the coordinates because The order of the menu items could change.

In menu i have: 
Item 1 
     SubItem 1

How can I select SubItem 1?

This is my object:
[Image: uft_sfwObject.png]

Thanks.

Viewing all articles
Browse latest Browse all 1793

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>