If there are 100 checkboes in a page then how can we select all chexkboxes at once through descriptive programing in QTP using vb script.
Please send the answers...

Answers were Sorted based on User's Feedback



If there are 100 checkboes in a page then how can we&nb..

Answer / brahma.quality

systemutil.Run "iexplore","http://www.computerhope.com/jargon/c/checkbox.htm"
Set odesc=description.Create
odesc("micclass").value="webcheckbox"
Set Child= Browser("title:=What.*").Page("title:=What.*").ChildObjects(odesc)
CheckboxesCount= Child.count

For i=0 to CheckboxesCount-1
Child(i).set "on"  ' clicks all checkboxes in the given page
Next

Is This Answer Correct ?    13 Yes 0 No

If there are 100 checkboes in a page then how can we&nb..

Answer / brahma.quality

systemutil.Run "iexplore","http://www.computerhope.com/jargon/c/checkbox.htm"
Set odesc=description.Create
odesc("micclass").value="webcheckbox"
Set Child= Browser("title:=What.*").Page("title:=What.*").ChildObjects(odesc)
CheckboxesCount= Child.count
For i=0 to CheckboxesCount-1
Child(i).set "on"
Next

Is This Answer Correct ?    8 Yes 0 No

If there are 100 checkboes in a page then how can we&nb..

Answer / dinesh1433

for i=0 to 100

Browser("index:=0").page("index:=0").webcheckbox("index:="&i).set "on"

Next

Is This Answer Correct ?    2 Yes 0 No

If there are 100 checkboes in a page then how can we&nb..

Answer / pravati

set obj=Description.create()
obj("micclass").value="Webcheckbox"
set checkboxobj=Browser("micclass:=Browser").page("micclass:=page").childobjects(obj)
msgbox checkboxobj.count
for i=0 to checkboxobj.count -1
checkboxobj(i).set "on"
Next

Is This Answer Correct ?    0 Yes 0 No

If there are 100 checkboes in a page then how can we&nb..

Answer / sunita

set obj=description.create()
obj(micclass).value="webcheckbox"
set checkboxobj=Browser("micclass:=Browser").page("micclass:=page").childobject("obj")
msgbox checkboxobj.count
checkboxobj(i).set "on"

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More QTP Interview Questions

Hi All, I am new to QTP but i was trained on winrunner before. My problem is..QTP 8.2 was unable to record my application which is a java app. By selecting smart identification, i was somehow able to record the test BUT QTP cant run the test! Can anyone help me in walking through this problem..Is java addin really necessary for this?? Is there anyways i can run the test successfully? I am not sure whats going wrong in my testing.Please do help me asap as i need to submit the report early. Thanks in advance

4 Answers  


HOW TO DO THE BATCH TESTING USING QTP?

8 Answers   CTS,


Can you tell me any books or websites to learn VB Script for QTP ??

1 Answers  


Will there be any standards or requirements for page appearance and/or graphics throughout a site or parts of a site?

0 Answers  


What is recovery scenario in qtp?

0 Answers  






I have enrolled for a QTP course which is a four weekend course.Do you think its a good way to start off learning this tool?What all do i need with me in order to become a pro at using this tool?

0 Answers   TCS,


for example one window is there, the window contains how many edit box's i want script? i know the script but that is not exact answer.... The script is like this .......... set a=description.creation() a("Native class")="WinEdit" b=window("Flight Reservation").childobject(a).count msgbox b if u found exact answer please getback to me? raju.ippali@gmail.com 9823257761

1 Answers  


what is the use of descriptive programming in QTP ? when we need to use DP? can we test the application completely with out useing DP?? please explan with example

2 Answers  


What is keyword view?

0 Answers  


How many types of parameters are available in quicktest professional?

0 Answers  


can we install qtp in windows vista

2 Answers  


How we can test a Frame in a web page?

1 Answers   eMids,


Categories