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?
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.