Forum Discussion
Hi!
I work with a Interop application -> developped in WPF and Delphi so when I click right in a Delphi or WPF window I have a PopupMenu .This PopupMenu is in "Windows" its WndClass = #32768 . Its a standard PopupMenu developped by Windows.
I launch many tests scenarios who use this PopupMenu , in Windows XP, Vista and Seven. So When I am in Windows XP OS, to click a Item in this PopupMenu , I do:
var object = Aliases.MyApplication.MyWindows ;
object.PopupMenu.Click("ItemCaption");
In Windows Vista or Seven I must do:
var object = Aliases.MyApplication.MyWindows ;
object.PopupMenu.Click("[ItemIndex]");
I must to launch a test scenario in Windows XP,Vista,Seven : so I must work with the ItemCaption and not the Index because at times a Item is enabled and not visible. Therefore the Index is wrong.
My question is how to catch the PopupMenu ->ItemCaption in Windows 7 and windows Vista?
thanks a lot
Andry
Related Content
- 12 years ago
- 3 years ago
- 7 years ago
- 9 years ago
Recent Discussions
- 3 hours ago