05-24-2012, 09:23 AM
I am using QTP 11 with a Powerbuilder application, on aWindowsXP box...yeah I know it is way behind.
I can open a photolineup with the following:
This opens a ContextMenu. Now , I can select delete and get rid of the photolineup, if I am using a role that allows this. When I change the role of the person logged to a role that cannot do it, the Delete is greyed out.
I want to be able to know that it is greyed out, and report on that. However, whenever I have tried, I get thet the object cannot be found.
Returns False no matter what.
always returns false.
Please, anyone with any ideas....I have been looking for three days and my boss is getting annoyed at the delay.
Thanks
Nick
I can open a photolineup with the following:
Code:
PbWindow("w_goccivgperson_person").PbListView("lv_event").Select "Photo lineup", micRightBtn
This opens a ContextMenu. Now , I can select delete and get rid of the photolineup, if I am using a role that allows this. When I change the role of the person logged to a role that cannot do it, the Delete is greyed out.
I want to be able to know that it is greyed out, and report on that. However, whenever I have tried, I get thet the object cannot be found.
Code:
Window("Person").WinMenu("ContextMenu").CheckItemProperty("Delete",,"Delete",500)
Code:
temp = Window("Person").WinMenu("ContextMenu").WaitItemProperty("Delete",focused,"Delete",500)
Please, anyone with any ideas....I have been looking for three days and my boss is getting annoyed at the delay.
Thanks
Nick