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
Our company is having a windows client server application developed in vb.net. so there is a treeview and i am not in a position to record the click events in QTP. so kindly help. Vivek
What are the different types of recording modes?
how to use the QTP choose the data from oracle? e.g. i input the identity card NO. this will be add new record in the database ,and now i want get this record's prime key.
how to test Web application using QTP software
what the difference between shared repository and per action repository?
What the differences are and best practical application of Object Repository?
Explain different recording modes?
I am sathish , i want to test the Application of JIL.org ,Mobile Emulator ,by using QTP10.0. I am trying to do testing on that Application , but Child Objects are not identified by the QTP. Please can any one help me
What is the architecture of your project? Can any one answer for this question plz........
What is parameter in qtp?
in a web page How to check and display a particular word from a paragraph?
What is ‘object spy’ and what is the function of object spy in qtp?
Can you write a script to check if the folder exists or not?
How to connect to a database?
i have doubt suppose iam purly working in manual, when i will get work to do on sql and performence testing? pls any one clarify doubt?