Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Coded UI Test Builder" Crosshairs not available in IE

I'm trying to test out Visual Studio's automated testing capabilities for a web application and the Coded UI Test Builder looks like it might be promising.

I can get it to record and playback actions, but I can't figure out how to use the crosshairs button to create assertions.

For example, in this video the presenter starts a recording, then opens IE and is able to select different UI elements for assertions. When I do this however, the crosshairs get greyed out as soon as I open IE.

Do I need to install a plugin or some other tool to make the Coded UI Test Builder able to access the DOM?

like image 520
Brian Avatar asked Nov 09 '12 17:11

Brian


People also ask

Is coded UI deprecated?

Coded UI Test for automated UI-driven functional testing is deprecated. Visual Studio 2019 is the last version where Coded UI Test will be fully available.

What is the difference between Coded UI and selenium?

Selenium IDE supports XML data sources. Coded UI Test supports any data source supported by.NET framework, which can come in the form of a. CSV file, XML file. It can also support any other data source like SQL Server table, Access table etc.

What is coded UI Automation Tool?

Coded UI (also called CUIT) is an automation testing tool provided by Microsoft technologies which helps in creating automated tests. The Coded UI tests help us verify the whole application such as User Interface and their functioning properties.


1 Answers

Ok, I think I figured it out. It looks like you have to pause the recording and then click "Generate Code" to get the crosshairs to be selectable. Then you create your assertion as a separate step and "Generate Code" for that.

I'm not sure if this is what your workflow is supposed to be, but it's working for me consistently.

like image 63
Brian Avatar answered Oct 30 '22 11:10

Brian