ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
how can i count the number of links???
 Question Submitted By :: Vidyanand
I also faced this Question!!     Rank Answer Posted By  
 
  Re: how can i count the number of links???
Answer
# 1
Using child objects we can count the links. script is as 
given below

SystemUtil.Run "www.hdfcbank.com"
Set aa=description.Create
aa("html tag").value="TD"

set bb=Browser("name:=HDFC Bank.*").Page("title:=HDFC 
Bank.*").childobjects(aa)
cc=bb.count

msgbox cc
For i=0 to cc-1
	bb(i).highlight
Next
 
Is This Answer Correct ?    1 Yes 1 No
Raju
 
  Re: how can i count the number of links???
Answer
# 2
There are two ways to get the count of links on a page.

1) g=Browser("Google").Page("Google").GetROProperty("number 
of links")
print g


2) set ld=description.Create()
ld("micclass").value="Link"
set lobj=Browser("Google").Page("Google").ChildObjects(ld)
c=lobj.count
print c
 
Is This Answer Correct ?    1 Yes 0 No
Nalini
 
 
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
Explain the check points in QTP? Prapan-Solutions14
4. what is the use of Text output value in Qtp? Wipro1
You have an application version 1 with 5 combo boxes, Developers develop version 2. Here they replaced bottom 3 combo boxes with each other. While executing the Test script for version1 no errors. When we execute the Test script for version2 that QTP showing the error message "Object not identified" remember no property changed in version 2, ordinal identifier also disabled. Find what properties might change here in this scenario ADP4
In real time ,How to run all scripts in QTP? i,e in projects  1
How to test whether the navigation i.e. from one page to another is working r not using QTP for web based application  1
How to face prjoect manager round what type of questions they will Ask ? (Chandana) IBM1
what happen in object repository(shared)if we call an existing action from an external action ? and what happen in object repository(peraction)if we call an existing action from an external action ?  1
In what situations QTP will not recognize the Objects? Wipro4
How to Compare the 2 xl-sheets in QTP? ple write the vb Script for the comparison?  1
diff between wr and qtp in detail.  4
How the automated tests in org Maintec1
How will u test content of an web application with out using chechpoints in QTP 9.2? CTS3
How you automate test scripts Novartis1
Hello, How can i capture first letter of any string using QTP. For ex.. i want "j" in the below string "john" could any one explain me? Is there any function for that? Livetek2
What is Maximum synchronization time out in QTP(By Default is 20sec). Anybody can answer it. Thanks in advance. Polaris9
How did u write macros?What is the main importance of VB macros in testing environment?  1
difference between recording methods and recording modes in QTP Ordain-Solutions3
WHAT IS THE FRAMEWORK & ARCHITECTURE OF YOUR PROJECT Wipro2
Hi, Plz give best Definition of Software Testing? Why we need Software Testing? and plz send 2+yrs experience Interview qutions (Manual,Qtp).  3
What is vulnerability? CTS1
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com