This project is read-only.

Coded UI (Descriptive Programming) details

Dec 5, 2012 at 1:34 PM
Edited Dec 5, 2012 at 1:41 PM
I am new in Coded UI-- I have enter same querry in many forums but not getting right answer. How to write a Descriptive Programmin in Coded UI -instead of recording like QTP has.. 
SystemUtil.Run "iexplore.exe", 
'Set value in Google Search Box Browser("title:=Google").Page("title:=Google").WebEdit("name:=q","type:=text").Set "automation repository" 
'Click on Search button Browser("title:=Google").Page("title:=Google").WebButton("name:=Google Search","type:=submit").Click 
'Find out the number of search results displayed sResults = Browser("title:=.*Google Search").Page("title:=.*Google Search").WebElement("html id:=resultStats").GetROProperty("innertext")
'Display the Result in a message box Msgbox sResults
Can anyone help me same how we can write this type of DP in Coded UI??
Please elaborate it - Coded UI has three files :
CodedUI Map.CS
CodedUI Map.Design.cs
Coded UItest.cs
& which file we have to write DP??
Please explain above DP in Coded UI....

Thanks in Advance!!!


Diwan Bisht


Jan 17, 2013 at 9:01 AM

Hi Diwan,

The answers to your questions are already in the help documentation here:

For example, please read the Quick Start documentation here:

Thank you.