When I execute the steps after recording, it fails on this step every single time. I know there must be a simple step I am missing or something I am doing wrong as this is a standard basic test.
10 Answers, 1 is accepted
So if I'm correct about your scenario, selecting an item in the drop down updates the TextBlock text, right? My first assumption this basically needs some DOM in HTML or Visual Tree in Silverlight update so you can try changing the Verify step to Wait For. Just right-click on that step and check the "Set as Wait" option, then replay the test.
I hope this helps but in case you need further assistance please post your test log so that we can have a better insight on your scenario.
All the best,
Konstantin Petkov
the Telerik team

Hi Konstantin,
Thanks for your reply but that doesn't appear to be the issue. I use the set as wait but it is still not working. What is strange is when I double click on the error in the record screen and view the step failure details, in the resolve failure tab it tells me the validation is successful, but it is still giving an error. Any idea why this would be the case?
Thanks
Can you please post the test log along with a screen capture of the debug failure details? These should help getting into the root of the problem, thank you!
Best wishes,
Konstantin Petkov
the Telerik team

Overall Result: Fail
--------------------------------------------------
'01/09/2010 16:55:15' - 'Pass' : 1. Navigate to : '/'
'01/09/2010 16:55:15' - 'NotRun' : 2. Wait for 'BioTextBlock' text Same '(None)'
'01/09/2010 16:55:18' - 'Pass' : 3. Click EditButton
'01/09/2010 16:55:19' - 'Pass' : 4. Type 'bio' into BioTextbox
'01/09/2010 16:55:20' - 'Pass' : 5. Click SaveButton
'01/09/2010 16:55:25' - 'Fail' : 6. Verify BioTextBlock's text content Same 'bio'
--------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Unable to locate element. Details: Attempting to find [Silverlight] element using
Find logic
(Html): [id 'Exact' silverlightControlHost] AND [tagname 'Exact' div][tagname 'Exact' object]
(Silverlight): [AutomationId 'Exact' BioTextBlock]
Unable to locate element. Search failed!
--------------------------------------------------
'01/09/2010 16:55:25' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
--------------------------------------------------
'01/09/2010 16:55:26' - Overall Result: Fail
--------------------------------------------------

thanks
Please add a WaitFor Exists verification for the TextBlock element as in the attached screen capture. If necessary you can also increase the timeout via the added step properties (by default it's value is 10 seconds).
Greetings,
Konstantin Petkov
the Telerik team

It is still failing even when I add a wait for element exists. When I record the test for the first time and execute the test it generally works but I am trying to match on AutomationId's and it does not appear to let me. The reason I need to use automationids is that without using them, it becomes difficult to track all the elements (also why does WebUI add in elements called TextBoxView whenever I click on a textbox).
Thanks
Element was 'not found'. Criteria: Element 'Exists'.
Page being searched 'SilverlightApp (silverlightControlHost)'.
Unable to locate element. Details: Attempting to find [Silverlight] element using
Find logic
(Html): [id 'Exact' silverlightControlHost] AND [tagname 'Exact' div][tagname 'Exact' object]
(Silverlight): [automationid 'Exact' BioTextBlock]
Unable to locate element. Search failed!
Do you mean you modify the find expression manually? Do you validate the expression after modification to make sure it's correct?
You can always change the friendly name of the element to get updated descriptions in your test. Just select the step, then select the pointed element in the Elements Explorer and in the Properties change its FriendlyName. This will automatically update your step description.
There is also another option you can use. Before you record any actions/verification over this element, you can choose to add it to the project (Hover over that, wait for the blue nub to appear then click it to get the element menu and choose the first option which is "Add to project elements"). Once you have the element in the project you can change the FriendlyName. Then whatever you record you will get the description accordingly. Does that help?
Greetings,
Konstantin Petkov
the Telerik team

I am verifying the find expression after I modify it, and it says it is successful, but yet the test is still failing. Do you know if it is possible to have the find expression work based on "AutomationID" alone, as I am removed all other parts of the find expression and feel this may be what is causing my issue.
So a normal find expression contains 2-3 rows, usually one stating the element type etc but I am removing all bar the automation ID.
Thanks
Tony
The automation ID is a really common part of the find expressions in Silverlight. It is so common that we always use that in (and add it automatically to) the find expression if present. So what really bothers me is that in this specific case we obviously don't detect this element has automation ID during recording. At the same time the find expression validation passes for you which means the attribute is present. That's quite confusing.
It looks to me there are two similar elements in the visual tree, have you checked that? For example you are trying to verify a property for one element and adding AutomationID you can point the engine to another element on playback? This may explain the problem you are facing.
Regards,
Konstantin Petkov
the Telerik team