Can Any One Write How to Write the Script for Child Objects
Answer Posted / sandeepguttikonda
Child Objects are used to perform the operations on similar
data.
Example: to get the total number of link in a Page:
And we can perform this by using the below code:
/* Creating the description object*/
Set oDescFrame = Description.Create
oDescFrame("micclass").Value = "links"
Set Links_Count = Browser("name:="&Browsername).page
("title:="&Pagetitle).ChildObjects(oDescFrame)
Msgbox &Links_count.count
This will display the total number of links in a page.
Please let me know if you need any further info.
Thanks.
Regards,
Sandeep Guttikonda
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Can anyone help.i need total excelsheet operations,shortcuts in testing environment from starting onwards....
What are the methods of the TextStream object that are used for reading from a text file?
supose i hv to acsess some functionlaties of a test in 1 machin , some part other machin how can acsess?
Where we can use the synchronization?
Is there anyway to automatically update the Datasource name in Database Checkpoints object when we migrate tests to a new release?
What is data driver in qtp?
1--How many functions u develop 2--What is an array 3-- where is ur server 4--U involved in unit testing 5--how ur test the background colour using QTP
How the exception handling can be done using quicktest professional?
how to convert 100 into hundred repees only and viceversa
How to delete an object from the object repository?
Explain hybrid framework with advantages and disadvantages?
I have many listboxes in my application. I have to check whether the contents inside the listboxes are in sorted order or not..can anyone please send the code as early as possible
What are the different kinds of test steps?
What are metrics and matrix?
How to use reporter.report event in qtp ?