Dim oDesc, oAllLinks, iNumberOfLinks
set oDesc = Description.Create()
oDesc("micclass").Value = "Link"
Set oAllLinks = Browser("creationtime:=0").
Page("micclass:=Page").ChildObjects(oDesc)
iNumberOfLinks = aAllLinks.Count
msgbox iNumberOfLinks
HP QTP Interview Question 26: How to return the number of links in a web page?
To count the number of links in a web page, Quality Assurance Engineer could use ChildObjects to get the link collection, then retrieve the properties for example number of links or any other objects on page.
Subscribe to:
Post Comments (Atom)
Common QTP Interview Questions
- QTP Interview question 35: Using HP QTP on locked system or with Microsoft Remote Desktop connection?
- QTP Interview question 34: Explain the difference between VBScript function and VBScript subroutine?
- QTP Interview question 33: Do you know any error messages of QTP license server?
- How would you use HP QTP 10 for an agile testing?
- Have you heard about HP QTP 10?
- Where to download HP QTP 10 tutorial?
- What is FSO in HP QuickTest Pro?
- Does HP QTP 10 support Chrome browser?
- How to retrun the number of links in a web page with HP QTP?
- HP QTP Interview Question 25: How to view QTP test results in HTML format?
- HP QTP Interview Question 24: Winrunner vs QTP comparison?
- HP QTP Interview Question 23: Pop up windows is not being recognized?
- HP QTP Interview Question 22: How would you select test case for automation?
- HP QTP Interview Question 21: Explain the difference between GetROProperty and GetTOProperty?
- HP QTP Interview Question 20: How to build automation framework around HP QTP 9.5?
- HP QTP Interview Questions 19: Where to download HP QTP 9.5?
- HP QTP Interview Questions 18: How to recognize text in CAPTCHA image with HP QTP?
- How to use Microsoft Excel in HP QTP Pro test?
- How can I verify if a page is completely loaded?
- How to alter the properties of a run time object?
- How to modify the properties of a test object?
- Elucidate the divergence amid test objects and run time objects?
- Selenium vs QTP?
- QTP Firefox support
- QTP Flex automation
- Object Spy in QTP?
- QuickTest Pro certification and job market?
- QTP certification and job search?
- Where to download QTP free trial version?
- What is QTP maintenance number?
- Decide on QuickTest Pro licenses for your organization?
- Explain the difference between QuickTest Pro licenses?
- Where can I buy any books on QuickTest Pro?
- What is the latest version of QuickTest Pro?
1 comment:
we can handle this situavation without programming
we can use the standard output value on page and can get the number of link in the page
Post a Comment