Popupselect problems when choosing menu twice
I am having a problem with the popupselect function for a listview on a MMC application. Here is the code I use:
rItem = Frame.Frame2.Listview.GetItemRect("Object1")
Frame.Frame2.Listview.PopupSelect(rItem.xPos, rItem.yPos, "Check In")
This code works the first time I do it. However, if I try the same exact code during the same test run it fails. It cannot find the option "Check In." It opens up the popup menu, but will not select the "Check In" option. I am on SilkTest 6.
Any ideas as to what could be going on?
Re: Popupselect problems when choosing menu twice
Rather than use the x and yPos try the x and ySize values divided by two. This will ensure that control goes to the middle of the selection and may ensure a better playback.
Frame.Frame2.Listview.PopupSelect(rItem.xSize / 2, rItem.ySize / 2, "Check In")
Hopefully it will help.