How to tell if a WinMenu item is checked?
I've defined a WinMenu as follows...
Set frmKernel = Window("Text:=Kernel Test Application", "is owned window:=false", "is child window:=false")
Set mnuMain = frmKernel.WinMenu("menuobjtype:=2")
I've been able to select specific menu items by using this syntax:
However, I'm unsure of how to check if a certain menu item is "checked" or not (that is, there is a checkmark next to it). Does anyone know how to do this?
Re: How to tell if a WinMenu item is checked?
Try using GetROProperty or GetTOProperty for the checkmark cell.
Use the Spy Tool.
Look thru the RO and the TO properties. See which one changes if that checkmark is there and when it is gone.
Then use something like this:
If (OracleFormWindow("Rga Header").OracleCheckbox("CTB Reviewed").GetROProperty ("enabled") = "False") Then
Reporter.ReportEvent micPass, "CheckMark check = PASS", "The CTB checkmark field is blank, as expected."
Reporter.ReportEvent micFail, "CheckMark check = FAIL", "The CTB checkmark field is not blank. It has a checkmark."
Hope that helps.