I was not able to capture the automation ids and stuff of context menus in my application using ranorex. Hence I decided to try out record and play and then use the code generated from that.
This is the code that was generated by Ranorex 2.0 RC1:
Code: Select all
repo.ContextMenuMnuLegList.MenuItemRefresh.Click("12;8");
repo.ContextMenuMnuLegList.ContainerScrollViewer.MenuItemEdit1.Click(" 23;8");
repo.ContextMenuMnuLegList.ContainerScrollViewer.MenuItemOpen.Click("2 0;9");
repo.ContextMenuMnuLegList.ContainerScrollViewer.MenuItemOpen_Location .Click("28;8");
Code: Select all
repo.FormEnquiry.TableLvDocuments.Click(MouseButtons.Right, "163;45");
Delay.Milliseconds(2070);
Mouse.MoveTo(518, 723);
Mouse.ButtonUp(MouseButtons.Left);
Delay.Milliseconds(770);
repo.FormEnquiry.TableLvDocuments.Click(MouseButtons.Right, "174;56");
Delay.Milliseconds(1260);
Mouse.MoveTo(536, 750);
Mouse.ButtonUp(MouseButtons.Left);
Delay.Milliseconds(1150);
Mouse.MoveTo(544, 778);
Mouse.ButtonUp(MouseButtons.Left);
Delay.Milliseconds(840);
Mouse.MoveTo(553, 793);
Mouse.ButtonUp(MouseButtons.Left);
Delay.Milliseconds(700);
Does this mean Version 2.0 is not able to recognize context menus at all!!??
Cheers,