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 do excception handling ( error handling ) in QTP
6 Answers Institute for Medical Education,
Suppose i have given 10 test cases all the test cases should be automated?
how do u handle an object without name using QTP 9.2?
how do u plan test automation?
can u please explain what r the challenges u faced in ur automation testing
How does qtp recognize objects in aut?
What are the major/ important methods, functions in QTP we use realtime testing
How to upload excel files into Quality Center using QTP Script and how to delete excel files from Quality?
types of output value in details.
What are the recording modes in wave event?
How you test the object which is dynamically changes its location?
What are the option you can use to synchronize your test?