How to get Links count in an web application,without
descriptive programming?
Answer Posted / chaitu
This Script is Helpfull to count the No.of links in a web
page
Step1: Set Objects = Browser("BrowserName").Page
("PageName").ChildObjects
Step2: Objectcount = Objects.count
Linkcount = 0
Step3: For i = 1 to Objectcount-1
Link = Objects(i).GetROProperty("micclass")
If Link = "Link" Then
Linkcount = Linkcount+1
msgbox Linkcount
End If
Next
msgbox Linkcount ' It show total number links
| Is This Answer Correct ? | 7 Yes | 5 No |
Post New Answer View All Answers
hi in real time who will execute the qtp test scripts? my faculty said, in a companty automation testers are written the test scripts and manual testers are execute the test scripts...IS IT RIGHT OR NOT?
How to test background color and dynamic images during run time can you put the check point for moving objects?
Why bpt?
Give me detailed theritical explanation about keyword driven, hybrid framework, environment variables, hybrid frame work
What environment does qtp run in?
Define object spy ?
Hi I am new to QTP. can u please answer to my qus... suppose 3 excel sheets are there * we are trying to check for login credentials for a page. userid from excel1 , password is from excel2 whether the page is opened or not that checkpoint is result is should be stored in excel 3.... this qus i have faced in IBM technical round... please tell script for above query ... please please
Could you please any one give code for the following ? Scenario : Suppose a excel file contains 10 records and earch have 5 fields. how can i input this excel file for datadrive wizard ? Please explain
If the weblist is identified as webelement,and by clicking on webelement if the values are displayed,and if the values the values also identified as webelement.then how to fetch the values through script?
How is UFT 11.5 version different from UFT 12.0?
Where we use data driver in qtp?
how to post xml data from QTP scripts to any application?
tell me abt a time when u had to go above &beyind the call of duty to get the job done
How many types of actions are there in quicktest professional (qtp)?
What is the difference in the global and action sheet in qtp?