Forum Discussion

Vinay_BA's avatar
Vinay_BA
Frequent Visitor
7 years ago

Unable to verify the sub menu under StripMainMenu

I have to verify the sub menu item which is visible when some control is set to 'ON' and not visible when control is 'OFF'

Properties attached to that ToolStripDropDownMenu is same when its visible and when its not visible.

 

Please find the below code that i have tried

Sys.Process("CareSys").WinFormsObject("frmMain").StripMainMenu.Items("File").SubMenu.Items("Configuration").SubMenu.Items("Cloud services").Enabled;

I have to verify "Cloud services" .if its present then i have to click on it.

 

 

 

 

1 Reply

  • Marsha_R's avatar
    Marsha_R
    Champion Level 3

    Are you saying that the Properties list is the same when visible/not visible or that the values are the same?

     

    Exists value could be the same both times, but visible value should be different.