I have a test where I'm first verifying that a button is enabled, then I click that button and it changes to a RadListBox.
I can verify that a particular item = index 1 or whatever, but I can't seem to click an item to select.
On Record, the step is added to the test:
RadListBoxItem('ctl00_ContentPlaceHolder1_lstMyTeam_i1'): '
Australia' action -> 'Select'
but on running the test it fails at this line with
'16/08/2011 2:23:46 p.m.' - 'Fail' : 7. RadListBoxItem('ctl00_ContentPlaceHolder1_lstMyTeam_i1'): 'Australia' action -> 'Select'------------------------------------------------------------Failure Information: ~~~~~~~~~~~~~~~Object reference not set to an instance of an object.InnerException:System.NullReferenceException: Object reference not set to an instance of an object. at Telerik.WebAii.Controls.Html.RadListBoxItem.Select() at Telerik.WebAii.Design.Translators.Html.ListBox.RadListBoxItemActionDescriptor.Execute(Browser browser) at ArtOfTest.WebAii.Design.Extensibility.HtmlActionDescriptor.Execute(IAutomationHost autoHost) at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)
Is there anything that I need to check or any setting i need to change in order to be able to select an item in a RadListBox?
Thanks