Select Item from Context Menu in Infragistics Tests
New DiscussionI have a right clicked context menu. QTP is able to record following steps:
Step 1: SwfWindow(“Workspace 01 – ProfitTaker”).SwfObject(“indicatorExplorerBar”).SelectItem “Basic”,”Predicted Low”
Step 2: SwfWindow(“Workspace 01 – ProfitTaker”).SwfObject(“indicatorExplorerBar”).ItemContextMenu “Basic”,”Predicted Low”
Step 1 makes QTP to select an item in the indicator panel. Step 2 makes it to right click on that particular item. after this step, I will see a contextMenuStip that has three items it it – Remove, Delete and Properties. I have to click on this Properties to see Properties window of “Predicted Low”. but QTP is not recording this click and is not selecting Properties. Clicking on this Properties is very much required to continue my test. When I recorded very first time, QTP recorded this step as:
SwfWindow(“Workspace 01 – ProfitTaker”).SwfToolbar(“contextMenuStrip1”).Select “Properties…”
but second time it has not even recording this line. I executed above step but to my surprise, it is not able to run the same step that it has recorded. I am surprised why QTP is able to record this for the first time and why not for the next subsequent recording.