How to get Links count in an web application,without
descriptive programming?
Answer Posted / kalyan
'Hi, we can use "innertext" as a unique property of link.
'Name may be changes in the runtime. And we can use the
index number to identify the link in the execution.
(NOTE:-We dont use index to retrive the child objects.why
because each child object have different index number.)
TRY THIS CODE:--------THIS WIL WORK FINE.
set olink=description.create()
oDesc("micclass").Value = "Link"
set chobj=browser().page().childobjects(olink)
n=chobj.count
msgbox n
for i=0 to n-1
val1=chobj(i).getroproperty("innertext")
msgbox val1
Next
Any doubts----mail to------ mskalyan.smile@gmail.com
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Hi I know two types of testing processes. 1. Reaquirments stage,test design,code review's, Design review's, Test Plan, Test Cases design, test execution, Defect Reporting and tracking, UAT, Signoff. 2.Test Initiation , Test Plan, Test Design, Execution,Bug tracking, UAT, Sign off.
Write a script to customize the test results in PDF and HTML format.
How many types of parameters are available in quicktest professional (qtp)?
What is an object repository?
Discuss the QTP Environment?
Does any one worked on JIL Emulator , Testing with QTP(automation). Trail Version of QTP is not identifying the child objects of JIL emulator, Can any one help me out ,
what is run-time data?
How qtp recognizes the object?
explain abt dyanamic changing object with example?
Hi, I got error message as "object does not support this property or method: "Test.Actions" when i execute the following line of script on QTP 9.0 Dim qtApp, qtRep Set qtApp = CreateObject("QuickTest.Application") Set qtRep = qtApp.Test.Actions("Action1").ObjectRepositories Can anyone tell me where i am wrong.
How to integrate QTP with QC using VB Scripting? What are the prerequisites to connect with QC?
How to customize qtp?
What are some test assets and related extensions of qtp?
what is review
What is throw object?