How to verify if popup menu item is grayed out

Sep 14, 2010 at 8:19 AM
Edited Sep 14, 2010 at 8:28 AM

I need to right click and select an item but the item is grayed out (disabled) , how do i verify that the item is grayed out. (disabled or not active) My code to right click is

 

 

Window.RightClick();

 

Thread

.Sleep(500);

 

PopUpMenu

popupMenu1 = Window.Popup;

 

Menu level2Menu = popupMenu1.ItemBy(SearchCriteria.ByText("Delete Service"

));

level2Menu.Click();

Sep 14, 2010 at 9:31 AM

Hi

item.Visible

item.Enabled = > if true, item can be used

Throndorin

Sep 14, 2010 at 1:14 PM

Thnaks a lot.