Introducing JavaScript Execution on InternetExplorer and CrossBrowser in Coded UI Test
Jan 18, 2013Sai Krishna Vajjala [MSFT]

Summary
Introduced JavaScript execution capabilities within Coded UI Tests for Internet Explorer and cross-browser scenarios (Firefox 15+, Chrome 21+) via the `ExecuteScript` method on the `BrowserWindow` class. This enables users to perform complex actions, use custom controls, and potentially simplify test code by leveraging JavaScript directly. The API supports passing various argument types and returning values, including HTML controls. Limitations include no built-in timeout for script execution and specific handling for 'Int' types and frame access.
More from the Coded UI Test Deprecation and Alternatives trail
- Changes to Coded UI Test in Visual Studio 2019
- Troubleshooting launch issues with xaml based apps using Coded UI Test
- Coded UI Test Extensibility V2
- Coded UI testing support for Silverlight using Visual Studio 2013
- Test controllers are not visible or marked offline in MTM when multiple versions of MTM are installed