Forum Discussion
dhanapal1
14 years agoContributor
I need to create generic function for menu bar implementation for my application. I am new to testcomplete. Could u please any one guide me how to write generic function. Where we have place those function and how to call those function wherever required in unit. In my application menus are recognized as textnode and menu items are recognized as table. Below are the code
Menu : search->Journal ->Default criteria
var iexplore;
var frame;
var textNode;
var panel;
var cell;
var panel2;
iexplore = Aliases["iexplore"];
frame = iexplore["page"]["applicframe"]["Mainframe1"];
textNode = frame["panelMenubar"]["textnodeSearch"];
// clicking on menu
textNode["DblClick"](33, 8);
// Selecting MenuItem
panel = frame["panelMenuworkdiv"];
cell = panel["panelMenu1div"]["table"]["cellJournal"];
cell["HoverMouse"](29, 1);
// Clicking on submenu item
panel["panelMenu15div"]["table"]["cellDefaultCriteria"]["Click"]();
Related Content
- 10 months agojamescollett
- 6 months agormrosen6
Recent Discussions
- 2 days agoMW_Didata