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

For QTP Test Engineer, What is his contribution to the Project? Means, As as automation test engineer what is his role in the current project?

0 Answers   V2 Solutions,


in qtp 3 sheets is there in data table like global, action1, action2. I want to check the rows and columns in action2. how can check using script?

2 Answers   Polaris,


Plz give the vb script for the following scenerio I have faced one issues while doing test in QTP. I have described the scenario below. 1. I have to test web application.In that i want to select from the drop down values in the application. 2. Suppose Drop down has 5 value "A,B,C,D,E".I would like to give value from data table of QTP. 3. For every iliteration it should select A,then B and so on

0 Answers  


What is Parameterizing Tests?

1 Answers   Crea,


Hi Guys...I just started working with QTP now.The frame work they use hear is Write all the functions in function libraries and pass data using data dictionary either from data table or excel .I kind of understood evrthing but one thing I need to know is How do they recognize objects .Do they use object spy and recognize objects or record them ..Does soemone have any idea how they generally do this is such kind of framework

0 Answers  






How does QTP identifies the object in the application Mainly objectives are three type's OF PROPERTIES namely

3 Answers  


write qtp descriptive programming to activate multiple notepads? please urgent friends

1 Answers   TCS,


How to export(copy) the entire webtable from the webpage into Excelsheet? using Vb scripting

9 Answers  


How to load a object repository(using VBScript) ... very urgent....

4 Answers  


I have a string "Redfort is in Delhi" how do u write vbscript for " Delhi in is Redfort"

4 Answers  


The xls contain data. how to get number of columns form the sheet?

4 Answers   Virtusa,


What is the main disadvantage of using low level and Analog modes?

2 Answers  


Categories