tanvi_agarwal
12 years agoOccasional Contributor
How to use ID property of an object and apply methods on it
Hi,
I used to use visual studio for automation earlier.
In VS if I want to click on a radio button with a specific ID we used to use this.browser.Button(Find.ByID("radiobutton1")).Click();
This used to click on the radio button.
Other example can be:
this.browser.SelectList(Find.ByName("Countrylist")).SelectByValue(country);
Similarly we used to use these methods of the objects to read text and store it in the variables and for many more actions.
Please could someone tell me how to carry out a similar function in Test Complete as I want it to read all my objects available on the page using their and ID and perform functions on it.
Thanks,
Tanvi
I used to use visual studio for automation earlier.
In VS if I want to click on a radio button with a specific ID we used to use this.browser.Button(Find.ByID("radiobutton1")).Click();
This used to click on the radio button.
Other example can be:
this.browser.SelectList(Find.ByName("Countrylist")).SelectByValue(country);
Similarly we used to use these methods of the objects to read text and store it in the variables and for many more actions.
Please could someone tell me how to carry out a similar function in Test Complete as I want it to read all my objects available on the page using their and ID and perform functions on it.
Thanks,
Tanvi
- You can use the Find and FindAll functions on testcomplete. They work the same way as you showed above.
http://support.smartbear.com/viewarticle/30995/