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
what is error and fault in terms of software quality?
Explain the parameter in qtp?
What r the different filters in defect in quality center
What is the use of running the scripts in Hidden-mode in UFT?
how to find that tools work well with ur existing system?
what is key word driven frame work ? why it is called like that ? what is the diference between keyword driven and data driven frame work ?
If u r using library files (Instead of Check Points) , How do u do bitmap check ?
What is object repository in qtp?
What is recovery scenario manager? When you go for recovery scenario manager?
If created one virtual object? Next time I changed the window position will it work?
If a button named "CLICK" is recorded in low level recording mode , what will be the values stored for "name" property of that button in object repository ?
How can i initiate the objects to find uniquely in OR
Hi, I got error message as "object does not support this property or method: "Test.Actions" when i execute the following line of script on QTP 9.0 Dim qtApp, qtRep Set qtApp = CreateObject("QuickTest.Application") Set qtRep = qtApp.Test.Actions("Action1").ObjectRepositories Can anyone tell me where i am wrong.
What is 'sleep' in sync point?
An action has both shared and local or associated to it and both have the same object in them. In the test which one will be considered?