Forum Discussion
5 Replies
- tristaanogreEsteemed ContributorSeveral ways, actually.
Say, for example, your TextBox is referenced as Aliases.MyApp.MyTextBox.
Depending upon the application, component, etc., any number of these could work.Aliases.MyApp.MyTextBox.Keys("This is my text")
Aliases.MyApp.MyTextBox.SetText("This is my text")
Aliases.MyApp.MyTextBox.wText = "This is my text"
Aliases.MyApp.MyTextBox.value= "This is my text"
This is just a sampling, you can find more information on interacting with edit controls at http://smartbear.com/support/viewarticle/14840/ - farhanahmedContributorThanks for the reply
Can i insert text to text boxes from file ? - tristaanogreEsteemed ContributorSure thing. It's just a matter of pulling the data out of the file and then using one of the above methods to do the data entry. Search the help for topics on Data Driven Testing.
- farhanahmedContributorCan you post me any sample code for this scenario?
will be grateful to you ..:P - tristaanogreEsteemed ContributorIf you're using scripts, there's an excellent tutorial complete with sample code at
http://smartbear.com/support/viewarticle/11891/
For keyword tests, you can find a similar tutorial at
http://smartbear.com/support/viewarticle/11896/