googleid_105206
14 years agoContributor
which is better way to handle context menus in IE and Firefox browser?
Hi,
I am Working on Flex4.5 based application using testcomplete 8.6.How handle context menus . Below example code is working correctly ,please correct me.which is the better way to to handle this type objects.
Fire Fox Browser:
1)set
contexMenu=Sys.Process("firefox").Window("MozillaUIWindowClass",
"Mozilla Firefox", 1).Window("MozillaWindowClass",
"", 1).Window("MozillaContentWindowClass", "",
1).Window("MozillaWindowClass", "",
1).Window("MozillaWindowClass", "", 1)
contexMenu.PopupMenu.Click("EditCopyBlock") // using this
way it's working fine
or
set
contexMenu=Sys.Process("firefox").Window("*").FindChild("WndClass","MozillaWindowClass",10)
contexMenu.PopupMenu.Click("EditCopyBlock")
// using this child method i get Ambiguous window
IE Browser:
set contexMenu=Sys.Process("IEXPLORE", 3).IEFrame(0).Window("Frame Tab", "", 1).Tab("http://172.16/ - Windows Internet Explorer").Window("Shell DocObject View", "", 1).Window("Internet Explorer_Server", "", 1).Window("MacromediaFlashPlayerActiveX", "", 1)
contexMenu.PopupMenu.Click("EditCopyBlock") // using this
way it's working fine
Please suggest me which is better approach to handle Context menus IE and Fire Fox.
Regards
Vijay