in qtp how i can retrive from a browser how many links are
there.means total no of links used in a browser
Answer Posted / sandeepguttikonda
To get the count of total number of links in a browser we
need to use "Childobjects".
And we can perform this by using the below code:
/* Creating the description object*/
Set oDescFrame = Description.Create
oDescFrame("micclass").Value = "links"
Set Links_Count = Browser("name:="&Browsername).page
("title:="&Pagetitle).ChildObjects(oDescFrame)
Msgbox &Links_count.count
This will display the total number of links in a page.
Please let me know if you need any further info.
Thanks.
Regards,
Sandeep Guttikonda
| Is This Answer Correct ? | 15 Yes | 0 No |
Post New Answer View All Answers
How do I generate Test Results window using descriptive method ( run time ) after my test execution process? Please have a look of my below code. ========================================================= Dim qtApp Dim qtTest Dim qtResultsOpt Set qtApp = CreateObject("QuickTest.Application") qtApp.Launch qtApp.Visible = True qtApp.Options.Run.CaptureForTestResults = "Always" qtApp.Options.Run.RunMode = "Fast" qtApp.Options.Run.ViewResults = True qtApp.Open "C:\Automation\Example", True Set qtTest = qtApp.Test qtTest.Settings.Run.OnError = "NextStep" Set qtResultsOpt = CreateObject ("QuickTest.RunResultsOptions") qtResultsOpt.ResultsLocation = "C:\Automation\Example\Res1" qtTest.Run qtResultsOpt MsgBox qtTest.LastRunResults.Status qtTest.Close Set qtResultsOpt = Nothing Set qtTest = Nothing Set qtApp = Nothing ========================================================== This code is working fine, but Test Result window is not displaying after execution. Anybody can please help me regading the same. Thanks Akshaya Madali Capgemini India Pvt Ltd 9823213538
In application which areas to be automated and what kind of situation will be take? using QTP? Plz give me the clear answer
Explain the concept of object repository and how QTP recognizes objects?
What is regular expression?
Hi All, I need code for how to execute qtp scripts from excell sheet
How to Get the Run-time value of an object under that web app under Test to the local data table sheet of that Action?
If an application name changes frequently i.e while recording it has the name, in this case, how do qtp handles?
Can we use index on view?
I want to test my vb.net solution file using qtp. Does Qtp test only .exe file?
what type of automation is follwed in the project?
How many add-ins comes by default with quicktest professional (qtp)?
In Test Directory, What are the contents in test case designing? if you prepare in excel sheet how u use thrw Test Directory?
How to Upgrade or support firefox 2.0 version on QTP 9.0? I have installed QTP 9.0 and installed firefox 2.0. But in REcord and Run Settings, it shows firefox 1.5 in Web tab for browser selection.
How do you create new test sets in td?
What are the differences between table and db checkpoints?