Hi,
I am creating a smoke test and seeing some behavior with the RadComboboxs. I need to automate one being opened. Is there a recommended way to do this?
I've tried ToggleDropDown but on occasion I get 'Object reference not set to an instance of an object' originating from Telerik.WebAii.Controls.Xaml.Wpf.RadComboBox.ToggleDropDown().
I've also tried trying if the combobox has items and then doing SelectItem(0, true) but, this gives me the following error when it tries to automate on a combobox from the filter popups on the grids.
System.Exception: Was not able to match a segment within the path. Expected:decorator , Found:FrameworkElement , Path:/popuproot:-1:11962631/decorator:0:40554822/nonlogicaladornerdecorator:0:29449080/contentcontrol:0:29534370/contentpresenter:0:23828523/filteringcontrol:0:13130117/border:0:51062193/grid:0:56906561/stackpanel:0:42397005/stackpanel:1:20897776/radcombobox:3:29186801
at ArtOfTest.WebAii.Silverlight.VisualFind.ByReference(AutomationReference reference, Boolean throwIfNotFound)
at ArtOfTest.WebAii.Silverlight.FrameworkElement.Refresh()
at Telerik.WebAii.Controls.Xaml.Wpf.RadComboBox.ToggleDropDownIfRequested(Boolean openDropDown)
at Telerik.WebAii.Controls.Xaml.Wpf.RadComboBox.SelectItem(Int32 itemIndex, Boolean openDropDown)
at Telerik.WebAii.Controls.Xaml.Wpf.RadComboBox.SelectItem(Int32 itemIndex)
Any ideas?
I'm using version 2012.2.1527.0.
Thanks
Andrea
I am creating a smoke test and seeing some behavior with the RadComboboxs. I need to automate one being opened. Is there a recommended way to do this?
I've tried ToggleDropDown but on occasion I get 'Object reference not set to an instance of an object' originating from Telerik.WebAii.Controls.Xaml.Wpf.RadComboBox.ToggleDropDown().
I've also tried trying if the combobox has items and then doing SelectItem(0, true) but, this gives me the following error when it tries to automate on a combobox from the filter popups on the grids.
System.Exception: Was not able to match a segment within the path. Expected:decorator , Found:FrameworkElement , Path:/popuproot:-1:11962631/decorator:0:40554822/nonlogicaladornerdecorator:0:29449080/contentcontrol:0:29534370/contentpresenter:0:23828523/filteringcontrol:0:13130117/border:0:51062193/grid:0:56906561/stackpanel:0:42397005/stackpanel:1:20897776/radcombobox:3:29186801
at ArtOfTest.WebAii.Silverlight.VisualFind.ByReference(AutomationReference reference, Boolean throwIfNotFound)
at ArtOfTest.WebAii.Silverlight.FrameworkElement.Refresh()
at Telerik.WebAii.Controls.Xaml.Wpf.RadComboBox.ToggleDropDownIfRequested(Boolean openDropDown)
at Telerik.WebAii.Controls.Xaml.Wpf.RadComboBox.SelectItem(Int32 itemIndex, Boolean openDropDown)
at Telerik.WebAii.Controls.Xaml.Wpf.RadComboBox.SelectItem(Int32 itemIndex)
Any ideas?
I'm using version 2012.2.1527.0.
Thanks
Andrea