How to get Links count in an web application,without
descriptive programming?
Answer Posted / a
POSTED BY -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
--------------
This code is not working.
Check it out.
Link = Objec(i).GetROProperty("micclass")
Error is here.
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
I want to open a Notepad window without recording a test and I do not want to use System utility Run command as well. How do I do this?
How can you pass value one action to another action?
what is meant by function library?Public and private functions in function library? if private functions are applicable for only for the particular test means then y we have to add those to function library?
What should we say if interviewer asks "What is ur project architecture?".......Can any one help me with clear information.?????????
What is the recovery scenario in qtp?
what function you write to do database testing with the help of qtp?
What is different command used in command Prompt while using QTP?
What are the views available in qtp?
wht is Manual Testing Frame work. Pls anybody can give appropriate answers
Define virtual object?
If a button named "CLICK" is recorded in low level recording mode , what will be the values stored for "name" property of that button in object repository ?
Hi Friends, Can anyone help me out in this one? In QTP, I am using Data Driver and want to parameterise multiple values (say 3 values ) for a field. How can I do it using Data Driver wizard? Plz mention it step-by-step. In the end after doing the needful, on opening the Data Driver window, how can I get number (i.e. 3) in the Parameterised column for that particualr value? Thanks a lot in advance.
how will you check how many members visited the website www.infosys.com?
To which environments does quicktest professional supports?
I am a new tester that needs to create an automatic script involving security questions. On a webpage I need to select a security question(which are random) from a drop down menu, and then input the answer as the last word from the security question. I have the script set-up to automatically select the first security question from the drop down. The problem I am having is trying to insert the security answer. How do I insert the security answer based on the selection from the security question?