Why does Coded UI Test playback fail to scroll the Silverlight control into view?

Bringing the control into view is an essential part of the UITestAction during Playback since Coded UI Test performs actual Mouse/Keyboard actions on the control instead of programmatic action on the control. In case of failure to bring the control into view, the playback will throw a FailedToPerformActionOnBlockedControl exception or a PlaybackFailure exception.   The…

2

Why is selection of an item getting recorded as a Mouse Click action?

Coded UI Test supports “Intent Aware Recording” i.e. the recording attempts to capture the intent of the user instead of the raw SendKeys or MouseClick actions. In order to achieve this, Coded UI Test has in-built Action Filters that process the raw actions based on a set of pre-defined rules and generate the set of…

0

Fetching Property of a Silverlight control

In Coded UI Test you can fetch the property of a control using two approaches –   1. Use the properties exposed in the Specialized Class.     E.g. SilverlightList.SelectedItems returns the selected items in the list box.   2. Use the UITestControl.GetProperty() API.     E.g. SilverlightList.GetProperty(SilverlightControl.PropertyNames.SelectedItems) as string[].     This API can be used to…

2

Understanding the Search logic for Silverlight controls in Coded UI Test

One of the primary objectives during recording in Coded UI Test is to generate a robust search condition for a UI control to be uniquely identifiable during playback. In this post I’ll mention some of the search logic specific to the Silverlight UI Automation support within Coded UI Test introduced in the VS 2010 Feature…

1