GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Tech FAQs  >  QTP
Go To First  |  Previous Question  |  Next Question 
 QTP  |  Question 634 of 646    Print  
Count Links in Webpage
How to count Links in Webpage by using QTP?


  
Total Answers and Comments: 1 Last Update: September 02, 2008     Asked by: rsbkfamily 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
September 02, 2008 09:12:12   #1  
akothuru Member Since: April 2008   Contribution: 37    

RE: Count Links in Webpage
Code to Count Links in Webpage

Set oDesc = Description.Create()
oDesc("html tag").Value = "A" ' Get a collection of linksSet oLinkCollection = Browser(“name:=test”).Page(“title:=test”).ChildObjects(oDesc)ItemCnt = oLinkCollection.Count-1

      Reporter.ReportEvent micPass, "No of Links in the wabpage: " & ItemCnt, "passed"


 
Is this answer useful? Yes | No

 Related Questions

Can anybody tell me the purpose of output checkpoints in QTP. how u r testing the text data through text checkpoints. how u r testing text data in the webpage through parameterization. my application is web based application. my requirement is i am retriving the data from the database to webpage. i put text checkpoint on the text, but problem is the parameterization. can anybody help me with code. i will appreciate if anybody can say
Read Answers (2) | Asked by : manoj_k3

How to identifier 4 similar java links in an pageI have 4 similar java links in a same page, in their objects properties, only href are different.Here are links:Java(“*”, ’03/01/2006’)Java(“*”, ’02/06/2006’)Java(“*”, ’10/09/2006’)Java(“*”, ’11/05/2006’)In object repository, I named first link to “date_01” and done this:For i =0 to 3browser("b1").page("p1").link("Text",
Read Answers (1) | Asked by : lozzko

I am trying to connect to Oracle in QTP but its not workingI hv written a code as - Set conn = CreateObject("ADODB.Connection")Set rs = CreateObject("ADODB.Recordset")SQL_Statement = "SELECT COUNT(*) FROM ACCOUNTconn.Open "Provider=OraOLEDB.Oracle;Driver={Microsoft ODBC Driver for Oracle};ConnectString=Test.WORLD;Uid=bds_read;Pwd=bds_read;"Its giving me error as - DSN not found or provider not foundBut I have created SYSTEM dsn as Test.WorldCould anybody suggest

After entering in the application giving the username and password. Welcome page opens .In that welcome page it contain three different links like view report,load report and create report. So in QTP hoe can i perform steps to access the links by giving nested loopsI gave the if condition to access different links but it doesnt work. Can anybody guide me.Thanku
View Question | Asked by : jyoti

View Question | Asked by : jyoti

In one of the popup window, 1.I have recorded two edit fields by selecting them from a drop down box and after I have selected the options, 'INSERT' field need to appear. But when I am running those steps the option that I have selected is not shown up but the default options are shown up and 'INSERT' button too does not shown up. How to make sure that the selected fields are displayed along with the 'INSERT' link.When I am recording it is recorded as:Browser().Page().WebTable().WebElement(Option

View Question | Asked by : Mallika

Latest Answer : Use the function called GetROProperty ("cols")So if you use x=JavaTable("Table Name").GetROProperty("cols")x will be the number of columns in the Java table.Santosh.. ...
Read Answers (1) | Asked by : sumeet

Latest Answer : To Count WebCheckboxes in WebpageSet oDesc = Description.Create()oDesc("Class Name").Value = "WebCheckBox" ' Get a collection of Checkboxes Set oCollection = Browser(“name:=test”).Page(“title:=test”).ChildObjects(oDesc)ItemCnt = oCollection.Count-1 ...
Read Answers (1) | Asked by : kamal

How to list down all the links in a window, and depending on specific property of the link how to perform action on that link?
Read Answers (1) | Asked by : prathima


 Sponsored Links

 
Related Articles

What is the use of COUNT with DISTINCT option

COUNT is a group function returns result by summarizing multiple rows. All group by value function will have the usage of DISTINCT or ALL option and so is the COUNT which uses the DISTINCT option. DISTINCT option is used to enforce uniqueness and  if combined with COUNT is used to
 

CSS3 Links Creation and Usage

CSS3  Links Creation and Usage Links are very vital for any web page to navigate through the site and so is also with CSS3 In CSS3 it is possible to handle links even more powerful and effectively as it is possible to handle various states of links which are link visited hover and active s
 

Java Ebooks Download Links

Please find 27 Java related ebooks download links Install the following program to download a softcopy of the book on to your PC mosgoogle Try any one of the following download links download httrack com cserv php3 File httrack httrack free fr mirror httrack 3 33 httrack com httrack 3 33 exe
 

SAP R3 Links on the Web

Please find the SAP R 3 Links for most of the resources on the web mosgoogle ABAP 4 by Victor VoilevitchSAP Community ABAP 4 Development Code Efficiency GuidelinesSAP Design Guild ABAP 4 Programming Language OverviewSAP DomainAbap By Kabai SAP E Business Solutions SAP DB ABAP Caf SAP EducationABAP
 

XML - Extensible Markup Language Ebooks Links

You can read them online or use any offline tools to download them mosgoogle XML Books Processing XML with Java The XML Bible Chapters PDF Working with XML XML Complete XML RPC HOWTO XML Web Services for ASP NET DocBook The Definitive Guide Introduction to XML for Web Developers XML Chap
 





About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape