sudhir_optima
13 years agoContributor
How to click sub menu item
We have written a function to click a Menu item as
function (ColumnName,PopupMenupath)
{
grid.clickColumnHeader(ColumnName,20,9,2);
grid.popupmenu.Click(PopupMenupath);
}
It works for Menu Item (PopupMenupath) who does not have sub menu. But in our my Menu some has sub menu items.
So how to make above function as generic so that it work for both menu items who has sub menu item too.
function (ColumnName,PopupMenupath)
{
grid.clickColumnHeader(ColumnName,20,9,2);
grid.popupmenu.Click(PopupMenupath);
}
It works for Menu Item (PopupMenupath) who does not have sub menu. But in our my Menu some has sub menu items.
So how to make above function as generic so that it work for both menu items who has sub menu item too.