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
How to create a standard checkpoint ?
After executing the script in qtp suppose i found some script execute successfully and found some error.So how to report the status for both (i.e pass and fail report)in test director. For "fail" We use "defect tab" in testdirector. But for "pass" how to report it to TL.what is the process plz anybody ans
What test cases can you automate using QTP?
Does Low-level recording capture mouse movements?
what is meant by Implicit and explicit requirements?
Hi I have exp in manual testing and planning to move in automation testing qtp(9.2).So can help me how to automate customer relationship management tool using qtp and vb script this tool already developed so how can I test it whatever maintaining by development team like documents,various options just give the whole life cycle thanks in advance
What are the views available in quicktest professional (qtp)?
how to write the descriptive programming in QTP for remove the object value and substitute, with a variable then call the validation from excel
What is expert view in qtp?
What should we say if interviewer asks "What is ur project architecture?".......Can any one help me with clear information.?????????
How many types of parameters are available in quicktest professional (qtp)?
Can we create user defined functions in qtp?
How to delete an object from the object repository?
what is output value in QTP and how it can be used in automation testing
What is the difference between shared and local object repository?