Write a QTP script to print all the link names displayed in
a web page
Answer Posted / siba
set linkObj=description.create()
linkObj("micclass").value="link"
set linkChildObj=Browser("Google Accounts").page("Google
Accounts").childobjects(linkObj)
childCount=linkChildObj.count
msgbox(childCount)
for i=0 to childCount-1
linkName=linkChildObj(i).getROProperty("innertext")
print( linkName)
next
| Is This Answer Correct ? | 16 Yes | 2 No |
Post New Answer View All Answers
How to find the name of the machine where you are running your automation scripts in qtp?
Hi frens! I am testing VB project with MS Access database. At add button click my record is storing in data table and it is shown in datagrid. So at Delete button click i want to check datagrid rows 9before and after delete). so how can i do it using descriptive programming?
What is accessibility check point?
what is the difference between modular framework & datadriven framework
What is method name to compare two XML files.
How can i use virtual objects? If have i created one new virtual object in a virtual object manager by following instructions.
There is an excel file of 1 to 100 sheets how you will iterate through it?
How does quicktest professional (qtp) identifies the object in the application?
what are all the fileds present in object repository?
what type of values given to objects. EX::Set oBrowser=Description.Create oBrowser(“micclass”).Value=”Browser”
How extensive or customized are the server logging and reporting requirements; are they considered an integral part of the system and do they require testing?
Hi, my requirement is to make a query in SQL using QTP. And i have to get the results of that query and i have to use those results for future testing. I created a driver but i dont know the code for using this Driver. please help me by providing the solution for y requorement
Hi! Using Descriptive Programming How do we get Parent object for an object by writing script(DP). Say, i want to get a parent object for a "Link" in a web page by writing script in Descriptive Programming.
Explain measuring transaction.
What is a recovery scenario?