Popup on a MDI child

Nov 13, 2009 at 11:05 AM

I'm unable to get a popup menu through a MDI child window with the following message:

"popup is not a member of Core.UIItems.UIItemContainer"

I can however get it through the parent window so it's not a big deal, except for making my code a tiny bit uglier. :-)

Is this working as intended?

 

 

Coordinator
Nov 16, 2009 at 5:47 PM

what is the code you are using?

Nov 17, 2009 at 7:10 AM

Here is the code I use:

Dim wsWindow As UIItems.WindowItems.Window = Application.GetWindow("Verkstad", InitializeOption.NoCache.AndIdentifiedBy("Testcase_error_report"))

Dim jobListWindow = wsWindow.MdiChild(SearchCriteria.ByAutomationId("frmJobList"))

Dim dgError = jobListWindow.Get(Of TableItems.Table)(SearchCriteria.ByAutomationId("dgError"))
       
dgError.RightClick()

Dim errorListPopUpMenu As PopUpMenu = wsWindow.Popup
'I would like to use jobListWindow.Popup

 

Coordinator
Nov 18, 2009 at 12:49 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.