If there are 100 checkboes in a page then how can we select 10th & 11th & 14th chexkboxes at once through descriptive programing in QTP using vb script.
Please send the answers...
Answer Posted / ranga
set ocheck=description.create
ocheck("micclass")="webCheckbox"
set checkcol=browser().page().childobjects(ocheck)
for i=0 to checkcol.count -1
if i=9 and i=10 and i=13 then
checkcol(i).set "ON"
end if
next
Is This Answer Correct ? | 3 Yes | 8 No |
Post New Answer View All Answers
Hi, my requirement is to make a query in SQL using QTP. And i have to get the results of that query and i have to use those results for future testing. I created a driver but i dont know the code for using this Driver. please help me by providing the solution for y requorement
What are test settings and global settings?
What is the file extension of the code file in qtp?
How many ways we can parameterize data in quicktest professional (qtp)?
How to open a new test using quicktest professional (qtp)?
If u r using library files (Instead of Check Points) , How do u do bitmap check ?
How many types of recording modes in qtp? Which will be used when?
Hi any body pls help me for QTP 11.0 software free demo version. i have to practice. Kindly send the link.or where i have to download.
How can I open a EXCEL file from QTP Resultviewer with reporter.ReportEvent function call. Example: Test files for details click "here". And clicking "Here" in the resultviewer will open a local EXCEL FILE.
I am getting the "test object property" Description properties "toolkit class" value By using "gettoproperty" in run time But my problem is how to get Ordinal Identyfier's type and value Type is index, value is 0 How can i keep this values in to required place How can i get these values in runtime I have to insert these "index" and "value" into another area Is there any script for this like "gettoproperties","Getroproperties" If anybody knows,please help me .
What is the difference between byref and byval in qtp?
In qtp is it possible to check broken links of a page?
images are dynamically changes how to compare two images with out using the bitmap
X flies from Hyd to bangalore using different methods of transportation. write the test scenarios and test cases for this?
If I am scripting Web-based Surveys using QTP that open up differently but at the exact same point require a username and password can I automate that username and password for all the surveys some how using QTP?