hi i have one isuue on selecting webcheckbox .there are 15
wecheckboxex i want to select every time 9 th one how can i
select plese help me

regards
balaji

Answers were Sorted based on User's Feedback



hi i have one isuue on selecting webcheckbox .there are 15 wecheckboxex i want to select every tim..

Answer / deep

HemaKumar has given your answer but has written the code
for WebList by mistake.
You can use this:
Browser("title:=.*").Page("title:=.*").WebCheckbox
("name:=account type","index:=8").Set "On"

Is This Answer Correct ?    2 Yes 0 No

hi i have one isuue on selecting webcheckbox .there are 15 wecheckboxex i want to select every tim..

Answer / hemakumar.m

Use index property.

Ex:
Browser("title:=.*").Page("title:=.*").WebList
("name:=account type","index:=8").Select "value"

Is This Answer Correct ?    2 Yes 1 No

hi i have one isuue on selecting webcheckbox .there are 15 wecheckboxex i want to select every tim..

Answer / raghavender

We Can check the webcheck box by using its Index number in
the application.
Browser().page().Webcheckbox("Name:=Chekbox name","index:=9
or 8").select

OR

We Can also Add all the check boxes To the Object
repository based on the Index numbers and select them in
the Code by writing
Browser().page().webCheckbox().select "ON"

Is This Answer Correct ?    0 Yes 0 No

hi i have one isuue on selecting webcheckbox .there are 15 wecheckboxex i want to select every tim..

Answer / manoj kumar

'Create teh object of Browser
set brow_obj = description.Create

brow_obj("title").value = "Google Accounts"

'Create the object description for Checkbox

Set chk_obj = description.Create

chk_obj("html tag").value = "INPUT"
chk_obj("type").value = "checkbox"

'Find out the all check box on page

Set ocheckbox = Browser(brow_obj).page
(brow_obj).ChildObjects(chk_obj)

'Count the no of check box
intcountobj = ocheckbox.count

'Select only two check box on page

For i = 0 to 8

ocheckbox(i).set "ON"

Next

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

What is fragmentation and paging?

0 Answers  


Explain about the Test Fusion Report of QTP ?

1 Answers  


What is object spy in quicktest professional (qtp)?

0 Answers  


I have 14 itmes in a drop down that are associated with an account And these items change with different accounts I want to be able to define it by and index number or any other id so if I enter 2 in my Global excel sheet it selects the 2nd item from the drop down - is this possible?

5 Answers   Rogers,


what is stlc and its contents?

1 Answers  






what is the criteria for choosing test cases for automation? Ex: if you have some 300 test cases, then how many you choose for automation. what is criteria of selecting?

3 Answers   Aricent, Delhi University, TCS,


What do you mean by checkpoints in qtp?

0 Answers  


how do you do database testing in qtp

5 Answers   NIIT,


Explain about Table and DB Checkpoints?

1 Answers   Crea,


Excepton Handling?

0 Answers   Wipro,


What are the Test design techniques you uses in ur project?

0 Answers   Accenture,


Explain about Checking Bitmaps?

1 Answers   Crea,


Categories