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
How can I change object description or check point values in qtp?
What are the views available in quicktest professional (qtp)?
What are the types of object repository in qtp?
requirement is for combo box your expected value is str= "Denver.Frankfurt.London.Los Angeles.Paris.Portland.San Francisco.Seattle.Sydney.Zurich" you must get the text in combo box and need to compare them how
what kind of frame work you used in your last project?
What is the extension of qtp local repository?
What ate the Technologies supported by QTP?
Can any one tell me.......How the test engg's start testing in the compy environment.....real time tester PLSSSS help me i need in depth information regarding this...
What is reusable action?
When do go for loop condition in test?
What is the virtual object?
what type of values given to objects. EX::Set oBrowser=Description.Create oBrowser(“micclass”).Value=”Browser”
To retrive the test data which tool vl use and whats basis u vl write test data? its urgent
Consider one application is open, clicking one menu will open another application in another browser. QTP does not catch the URL of the second browser(second application). can we capture it ?
What is a recovery scenario?