Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Answers were Sorted based on User's Feedback



I Have web table shown below ----------------------------------------| | orcut | GMAIL | NAU..

Answer / ganesh

One of the solutions is below:
It seems if VISIT FACEBOOK link/web element exists in 2,3
co ordication then below is one of solutinos.

Get the child object using ChildItems method from the 2
(row),3(col) using .ChildItems(2,3,"Link",0) if returns any
object then click on it.

E.g
Set objCh = Browser("A").Page("A").WebTable("A").ChildItem
(2,3,"Link",0)

If objCh.Count >0 then
objCh(0).Click
Else
Print" No link found"
End If

Is This Answer Correct ?    1 Yes 0 No

I Have web table shown below ----------------------------------------| | orcut | GMAIL | NAU..

Answer / kapil

rCount=Browser("title:=ABC").Page("title:=XYZ").WebTable
("name:=Links").RowCount

For r=1 to rCount

cCount=Browser("title:=ABC").Page("title:=XYZ").WebTable
("name:=Links").ColumnCount(r)



For c=1 to cCount

oCount=Browser("title:=ABC").Page("title:=XYZ").WebTable
("name:=Links").Childitemcount(r,c,"Link")

For obj = 0 to oCount-1

Set cObject=Browser("title:=ABC").Page
("title:=XYZ").WebTable("name:=Links").childitem
(r,c,"Link",obj)
If cObject.GetROProperty("innertext")="VISIT FACEBOOK" then
msgbox "Link is there"
cObject.click
Endif
Next
Next
Next
set cObject=Nothing

Is This Answer Correct ?    1 Yes 0 No

I Have web table shown below ----------------------------------------| | orcut | GMAIL | NAU..

Answer / 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

More QTP Interview Questions

Explain the types of properties that quick test learns while recording?

0 Answers  


Which is the best QTP training institute in Delhi/NCR region and what is the approximate fee for QTP course (Basics and Advanced)

0 Answers  


whenever U using QTP,Test Director, Why we using separate Bug tracking tool?

0 Answers  


What is the use of Regular expression?

5 Answers  


What is the difference between Call to Action and Copy Action?

2 Answers   Satyam,


How do Parameterization and Data-Driving relate to each other in QTP?

0 Answers  


Hello Everyone, Please provide me the practical example of business component concept of QTP.Like how to create business component,how to connect the quality center etc.... Thanks in advance, Gaytri

0 Answers  


Limitations in QTP?

0 Answers   CIL,


When to Insert transactions in QTP?

3 Answers   Siemens,


How many types of recording modes in qtp? Which will be used when?

0 Answers  


What does "Dynamic change on web pages" means.As per my knowledge, this comes in "Complete" level of Active screen capture levels, where it says, "Also dynamic changes on web changes are saved.so i want to know what type of dynamic changes are made and is this dyanmic changes efftes only on web application or any other?

0 Answers   EDS,


What is Modular framework and Keyword drive framework? Explain

4 Answers  


Categories