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
one screen page,that contains file , browse , update and cancel buttons.when we browse a file it should get update otherwise it should go to previous page.write negative test case for that.
What are the methods used in UFT to handle exceptions or run-time errors?
What is difference in global and action sheet in qtp?
Does QTP record on Objects created on XWindows Environment?
Define Canvas view of UFT?
If you are testing a web application then what will you test in that application?
How will you compare keyword and expert view?
What is the differences between image check point and bit map check point?
What is regular expression?
can any body clearly explain about keyword driven framework .give me the explanation for files what ever you use in this frame work?
in a web page hoe to check the dynamic links that rechabging with out using regular expressions
While spliting an action in QTP 10.0 getting an error : "This Line is a part of Script Block.You cannot split the action on this line." how to re-solve this and split the script into actions?
What is a quick test professional?
If created one virtual object? Next time I changed the window position will it work?
how can we test the Triggers, Cursors, Indexes while doing Database testing in DTP??