O'Reilly logo

Windows® Phone 8 Unleashed by Daniel Vaughan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using Automation Peers to Manipulate UI Elements at Runtime

When performing code-driven UI testing, often you need to manipulate elements in ways that are not possible using the API of the elements themselves. The Button class, for example, does not have a PerformTap method to raise the Tap event. The built-in control classes are generally well encapsulated and are not designed to simulate interaction via code. For this we turn to the Microsoft UI Automation framework, which consists of a secondary API for manipulating UI elements from code. The Automation framework is designed for accessibility software, allowing third-party software to manipulate the UI on behalf of a user with a disability.

The Automation API is able to manipulate elements, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required