PopupMenu Item Checked
Hi,
My test case is like, when right click on the taskbar need to verify if item("show touch keyboard button") in the popupmenu is checked or not.
I can able to get the items using following snippet:
var pObj = Sys.Process("explorer");
var wObj = pObj.Window("Shell_TrayWnd", "", 1);
var get = wObj.Find("ObjectIdentifier", "Notification_Chevron", 50);
get.ClickR();
Delay(3000);
var pObj2 = Sys.Process("explorer");
var wObj2 = pObj2.Window("#32768", "", 1);
var getCount = wObj2.PopupMenu.Count;
Log.Message(getCount);
for(i = 0; i< getCount; i++)
{
var check = wObj2.PopupMenu.Items(i);
Log.Message(check.Caption);
//To validate if Popupmenu item is Checked ????
/*if(check.Checked)
{
Log.Message(check);
}*/
}
Also, in last conditional stmnt I am Checking, if item was checked. need to know whether it is correct or not?