Thank you for trying Test Studio.
You don't need to use code to set the values of these controls. It can be achieved with a regular recording.
I recorded a short video as a demonstration.
You can also extract the values in a variable without a code as well and use it in an another step.
Here is another video that demonstrates it.3
Check also how to Get/Set extracted value in code.
If it is really necessary to be in a code you can easily set/get their values:
//Set text of the texbox.
HtmlInputText firstName = Manager.ActiveBrowser.Find.ById<HtmlInputText>(
//Select radio button.
HtmlInputRadioButton rad = Manager.ActiveBrowser.Find.ById<HtmlInputRadioButton>(
HtmlInputCheckBox check = Manager.ActiveBrowser.Find.ById<HtmlInputCheckBox>(
//get the text of the textbox
HtmlInputText firstNameText = Manager.ActiveBrowser.Find.ById<HtmlInputText>(
text = firstName.Text;
This code is against a simple HTML application which is attached in this post.
I recorded another short video
to demonstrate it.
Hope this helps.
the Telerik team