hai friends i already ask this question but when i post the
question the alignment goes wrong .....my question is we
have a WEB TABLE ....assume that web table having 3 row's
and 3 column here in 2nd row 3rd column having VISIT
FACEBOOK link...now i want to check the VISIT FACEBOOK link
is available or not ..if it's there i want to click the link
...then how to find the web table row or column count
....don't write the excel or data table script here friends
.....consider that it's a WEB TABLE do a favour ...thank's
Answers were Sorted based on User's Feedback
Set OWT = Browser(" ").Page(" " ).WebTable( " ")
CC = OWT.ColumnCount
GetRNum = OWT.GetRowWithCellText("VISIT FACEBOOK")
For j =1 to CC step 1
If OWT.GetCelldata(GetRNum,j) = "VISIT FACEBOOK" Then
GetCNum = j
Exit for
End If
Next
Set Link1 = OWT.ChildItem(GetRNum,GetCNum,"Link",0)
Link1.Click
(or)
Set OWT = Browser(" ").Page(" " ).WebTable( " ")
RC = OWT.RowCount
CC = OWT.ColumnCount (1)
For i =1 to RC
For j= i to CC
If OWT.GetCellData(i,j) = "VISIT FACEBOOK" Then
GetRNum = i
GetCNum = j
Exit for
Exit for
End If
Next
Next
Set Link1 = OWT.ChildItem(GetRNum,GetCNum,"Link",0)
Link1.Click
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / ram
Hi,
You can use GetTableFromElement by putting in loop.
Let me know if you want code.
Ram
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / pravati
Rowcount=B().P().webtable().getrowcount
for i=0 to Rowcount-1
msgbox i,..it willshow u no of rows
next
clmncnt=B().P().webtable().getcolumncount
for j=0 to clmncnt-1
msgbox j,....it will show u no of columns
next
B().P().webtable().Getcelldata(2,3).click
wait 2
if B().p().link().exists then
msgbox " link exists
else
msgbox "link doesnot exists"
| Is This Answer Correct ? | 0 Yes | 0 No |
how to parameterizing values from an excel sheet in Quick test professional?
Maximum synchronizing time out in QTP
hi all can anyone explain how to write the code for finding the mandatory columns in table which are having (red*) (red Astrik)
Diff b/w Test Design and Test case design? What is the Design Review's and Code Review's. When will you conduct tese reviews?
write a script to verify the image path(src property) of the images which are in web pages.(do it by Descriptive method by creating a description object)
How will u declare a variable to access multiple actions? a)Dim b)Global c)Public d)Private
what is the Command used to start the QTp from Run.(start-> Run)
In how many ways we can add check points to an application using QTP.
Can any body please tell me the steps of keyword driven frame work in qtp. My mail is saswat445@gmail.com please send some materials on keyword driven testing in qtp. thanks a lot...
What VBScript operators, functions, and statements do you use in QuickTest Professional?
Can any body help me to write descriptive program to find a cell value (say 2 row, 3rd column) in a datatable which is creating dynamically and statically
w is output value