Hi,
After updating to the newest version of Telerik Testing Framework new automation IDs are not recognised. The old ones (created before the update) work, but the new ones that I have added are not recognised and when the tests are run and I recieve an "element not found" error.
I think I am adding in the ID correctly (this is how I always used to add them in before). Please see the example below:
What is written in the Xaml:
<ListBox AutomationProperties.AutomationId=
"Menu_Model_Type_ListBox"
Height=
"Auto"
MaxWidth=
"250"
ScrollViewer.HorizontalScrollBarVisibility=
"Disabled"
ScrollViewer.VerticalScrollBarVisibility=
"Disabled"
HorizontalAlignment=
"Stretch"
ItemsSource=
"{Binding ModelTypes}"
>
<ListBox.ItemTemplate>.....
What is written in the Test:
ArtOfTest.WebAii.Controls.Xaml.Wpf.ListBox modelTypeListBox =
app.MainWindow.Find.ByAutomationId<ArtOfTest.WebAii.Controls.Xaml.Wpf.ListBox>(
"Menu_Model_Type_ListBox"
);
Any idea what could be causing this error? These elements are definitely there (and of the correct type etc.).
Many thanks in advance for your help.
Best regards,
David