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
What are lbound and ubound in the vbscript language?
How will you get a random number between 0 and 1 in vbscript?
Which function is used in the vbscript language to convert the specified expression into a date type value?
Explain How do you create a recordset object in vbscript?
How will you get a combined string from array of string in vbscript?
1) How can we use VB script in testing the application? 2) What all are the things(Software application to be installed in PC) we need to learn VBscript?
Mention what is the technology used by vb script?
Explain about scrrun.dll?
I have an excel sheet with multiple ID's in a column. Now i need fetch those ID's in an application and check whether if it already exist in the DB. If not then i have to go with the process of inserting them in the DB. If it exists then i need to skip that ID and move to the next ID and check the same and proceed. How can i do that with for loop and if condition?
Explain about tristate constants?
How to identify column in VSFlexgrid? My VSFlexgrid window is identified as 'Active X Control'
How to open browser in vb script?
about vb scripting programs this type of all question& answers
What is select case statement?
what do you mean .ota mobile format