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
What is object repository in qtp?
Which HTML specification will be adhered to? How strictly? What variations will be allowed for targeted browsers?
How to use the object spy in quicktest professional (qtp) 8.0 version?
What are the ways you can synchronize?
What is the parameterization? Give one example?
We stored into the objects OR and then write the scripting
What we are looking for is to load properties of object dynamically as for our application the global repository will pretty huge. It will be really helpful to us if something similar to following functions of Winrunner is available in QTP. #Define descriptor auto strDesc; #set property in the descriptor Gui_desc_set_attr(strDesc,?Class?,?Edit?); --- put other properties #Add Edit box to GUI Map Gui_add(? ?,strWindowName,strEditboxName,strDesc);
what is object and child object.. explain ..if possible give some example for better understanding ..
whenever U using QTP,Test Director, Why we using separate Bug tracking tool?
When using descriptive programming?
How to write business scripts using object repository with different scenarios
Is it possible to call win runner script in qtp?
There is an excel file of 1 to 100 sheets how you will iterate through it?
Brief the process of testing with UFT?
How to check feasibility of the appliction?in automation testing?