I Have web table shown below
----------------------------------------|
| orcut | GMAIL | NAUKRI |
|----------|---------|-------------------|
|HOT MAIL | MONSTER | VISIT FACEBOOK |
|----------|---------|-------------------|
|SKYPE ACC | IRCTC | GOOGLE |
---------------------------------------
Here i have 2 question friends..
1.i want to chick the link "VISIT FACEBOOK" is there or not
if it's there i want to click the link
2.here 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
Answer Posted / manjunathareddy
1.Answer for 1st Question
" VISIT FACEBOOK" is the 1st Row 6th Column.
If Browser("Browser").Page("Page").WebTable("VISIT
FACEBOOK").ChildItem(1,6,"Link",0).Exist(5) then
Msgbox "Link Exist"
Browser("Browser").Page("Page").WebTable("VISIT
FACEBOOK").ChildItem(1,6,"Link",0).Click
Else
Msgbox "Not Exist"
End If
2.Answer For 2nd Question
Dim mytable,Row,Col
Set
mytable=Browser("Browser").Page("Page").WebTable("WebTable
Name")
Row=mytable.RowCount
Col=mytable.ColumnCount(Row)
Msgbox Row
Msgbox Col
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is keyword driven framework?
After fixing the bug, the same bug is raising again and again in new builds what we have to do? That bug is high level bug.
If we put all properties in mandatory and assistive list of Normal Identification, Do we still need Smart?
what is the difference between modular framework & datadriven framework
What do you mean by iteration?
what is the difference betn QTP 8.0 AND PREVIOUS VERSION
What are the advantages of parameterization ?
In QTP TEST DIRECTOR COMBINATION WHAT IS THE PURPOSE OF TEST DIRECTOR? In Somebody says to store test cases and design test cases.?ok fine , but In test director 5.0 , QTp not launching. what u do?
can any body tell me how i create a simple script and apply output value on it .pls send me a step by step process
How many types of parameters are there?
how to idetfy which test cases are automated?who will deside that plz tell me
How can I import environment from a file on disk?
How can I check if a environment variable exist or not?
Suppose I want fail that check point? How can you do that?
What are the automation metrice in your project?