Can anybody help me by sharing the code for checkbox in qtp
using vbscript.
Answer Posted / ashish
Set myPage = Broeser("creationtime:=0").Page("title:=.*")
Set desc=Description.Create
desc("micclass").value="WebCheckBox"
desc("html tag").value="INPUT"
set cboxes=myPage.childObjects(desc)
for i=0 to cboxes.count-1
cboxes(i).set "ON"
Next
'if you want uncheck use "OFF" instead of "ON"
set cboxes=NOthing
set desc=NOthing
set myPage=NOthing
regards,
ashishkrsahu@gmail.com
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is the default add-ins in qtp?
How to create Reusable and Multiple Actions?
What is qtpro?
How to find the difference between 2 dates in qtp?
how to write the descriptive programming in QTP for remove the object value and substitute, with a variable then call the validation from excel
Is it possible to split an action? How?
I want to know what are QTP functons and what are VB script functions. What is the difference between them.When we have to use these functions.
In the application that I'm testing is having a WYSIWIYG editor.QTP is recording editor's body as web element. I want to add some data to this web Element at run time. The problem is that I cant find a method to add contents to this web Element. Can any one come up with an answer for this. Thankx.
What does mean by Scope of Automation?n How we defined it?
What test you perform mostly? Regression or retesting in your testing process?
What is the significance of “action 0” in qtp?
If you have two monitors one is of 19inch and the 2nd one is of 24inch,if you want to write same QTP script in both the two monitors is there any changes required in the script?
How to analyzing test results using quicktest professional?
Subj: realtime example of Database check point, Can any one please detail on how the Database check point is utilized/implemented in a real time project. I already know how to make one by creating DSN/ODBC and writing the required query manually and other steps...I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thank you in advance
How you can find the absolute value of the number in qtp?