There is a web Table where You will find Two Columns
First Column consist of Check box and Second column consist
of Test cases ID(Viz T1,T2,T3....Etc); If You select any
Test case ID, respective Check boxes to be checked write a
VBSCRIPT for this scenario?
Answer Posted / prathibha
rc=Browser().Page().webtable().rowcount
for i=1 to rc
cc=Browser().Page().webtable().columncount(i)
for j=1 to cc
if Browser().Page().webtable().getcelldata(r,c)="T1" or "T2" or "T3" then
set Owebchkbox=Browser().Page().webtable().getchilditem(r,c,"webcheckbox",index:=0)
Owebchkbox.set "on"
end if
next
next
Steps:- 1.Intially I'm trying to find the rowcount
2.iterate the no.of rows we have
3.find no.of columns we have for the row
4.iterate that from starting column with that row
5.find cell data value with getcelldata(r,c)="T1"or "T2"..etc
6.when it matches at that point get the childitem object with that row and column corresponding to the row and column no.where we had matched T1 or T2 ...
7.After obtaining the child item object ..do the necessary operation on it .like in our case we have to set it to on
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain the functionality of vbscript?
How to declare an array in vbscript?
Write a Script for ATM in QTP
Mention what is vbscript?
How will you format a number in percetage format in vbscript?
What is the event handling in vbscript?
What are subprocedures in vbscript?
Can someone please tell me what poor design in a relational database (not the layout or style) is and how it can be avoided? PLEASE...im desperate.
hi i am trying for testing job for 3+ experience(fake) can u suggest me what type of projects i can keep in my resume and how much of knoeledge i should have abt that project.thnks in advance.urgt plz
What is the purpose of drive object of scripting.filesystemobject class in vbscript?
Explain about .wsf files?
What if you do not specify anything when you call a procedure?
why variable name should not exceed 255 characters?
Out of the different type of operators, which are evaluated first and last in the vbscript language?
How are values assigned to string type and numeric type variables?