Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

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.

1904


What are the methods used in UFT to handle exceptions or run-time errors?

1063


What is difference in global and action sheet in qtp?

1043


Does QTP record on Objects created on XWindows Environment?

2142


Define Canvas view of UFT?

1002


If you are testing a web application then what will you test in that application?

1990


How will you compare keyword and expert view?

888


What is the differences between image check point and bit map check point?

1010


What is regular expression?

1001


can any body clearly explain about keyword driven framework .give me the explanation for files what ever you use in this frame work?

2061


in a web page hoe to check the dynamic links that rechabging with out using regular expressions

2209


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?

1858


What is a quick test professional?

1114


If created one virtual object? Next time I changed the window position will it work?

995


how can we test the Triggers, Cursors, Indexes while doing Database testing in DTP??

2026