Forum Discussion
DevaV
13 years agoContributor
Hi Anitha,
Please refer this link http://support.smartbear.com/viewarticle/12985/
For eg consider below code to check the click the menu item
Hope this helps out!
Please refer this link http://support.smartbear.com/viewarticle/12985/
For eg consider below code to check the click the menu item
var TestPopupMenu = Sys.Process("explorer").Window("#32768", "", 1).PopupMenu;
var TestMenuItem = "Refresh"
for (i=0; i<TestPopupMenu.Count; i++)
if (TestMenuItem === TestPopupMenu.Items(i).Caption)
break
if (i<TestPopupMenu.Count)
TestPopupMenu.Click(i)
else {
Log.Error(Menu not exists.);
TestPopupMenu.Close();
}
Hope this helps out!
Related Content
Recent Discussions
- 3 hours agoJacobjacob44