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
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 |
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 |
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 |
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 |
Can any one brief some detail on how the shared and action object repository utilized/implemented in a real time project. I already know how to make shared object repositor by saving OR as .tsr extension..I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thanks
How i can test the background color of the records displayed in a Table. Eg i have a .net desktop application and there is a Table(swftable) with records displayed in the grids. i have to validate whether the 1st record is displayed in white background color and 2nd record in light blue background color...But the constraints is that once user click on the first record...the background color changes to grey.......Plze let me now how to validate this with QTP 9.2.
how u track bugs using Test director in manual testing.
How do u do batch testing in WR & is it possible to do in QTP, if so explain?
what is meant by Utility object and utility functions?can u all pls explain these clearly.
UFT 12.02 which ALM version will support
What is error handled other than recovery scenario manager?
How to integrate the qualitycenter with qtp
i'm using the qtp to test to vb appliction,i wanted to get the new application's title.i didn't want to use the winAPI to get it ,i 'd like to know whether a QTP function can do it. Eg: SystemUtil.Run "C:\Program Files\.....","","","" 'run an application, and misure the application is activating,then how to get the hwn wihtout using windowns api
Hi guys, Please suggest some thing these points are correct???, Is UFT 12 and QTP outdated ??? and also VBscript is also deleted/Removed from QTP ???? Javascript is added latest and tool name is called JFT ??? From this year ??
How u will open the build automatically in QTP except using Systemutil.run command
How did u write macros?What is the main importance of VB macros in testing environment?