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
Why is Client side image is preferred over server side image?
In QTP TEST DIRECTOR COMBINATION WHAT IS THE PURPOSE OF TEST DIRECTOR? In Somebody says to store test cases and design test cases.?ok fine , but In test director 5.0 , QTp not launching. what u do?
What are the factors on which script execution time is dependent?
if our qtp vb Script may be Currepted then What we want do?
in a web page hoe to check the dynamic links that rechabging with out using regular expressions
Explain building blocks of the bpt framework ?
What are parameterizing tests?
hi frinds i need help .i have 4 + yrs exp in testing and nearly 2 yrs exp in QTP and QC .currently iam working north fast 2 yrs iam looking for job in south is there any openings plz letme know my mail id is pbre1980@gmail.com
What is the process of synchronizing qtp and aut?
What if recovery scenarios is also failed for identify the alert ? (We are handling unexpected popup through recovery scenarios but if still recovery scenarios also failed than what should be the approach)
Sql questions to find second max salary and how to use joins
HOw to add the recovery file at runtime to the test file .
What are the features and benefits of quick test pro (qtp 8.0)?
can i change the runtime properties of an object ? How can i check if a parameter exists in database ?
What are the recording modes in qtp?