write a qtp code to count the number of child objects in login
page and highlight it

Answer Posted / prathyusha

set olink=Description.create
olink.add "micclass","text"
set olinkcol=B().P().Link().childobjects(olink)
msgbox olinkcol.count
for i=0 to olinkcol.count-1
olinkcol(i).HighLight
next

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

UFT 12.02 which ALM version will support

1190


what is meant by source control?

1895


Hi All, I need code for how to execute qtp scripts from excell sheet

1661


how to test load test and block box testing an a web based application pls give ans briefly

1573


when will you do debug your script? and explain that process?

1648


What is the quicktest professional (qtp) testing process?

750


How will you compare keyword and expert view?

716


How does qtp recognize objects in aut?

778


Which environments does qtp support?

844


What are the differences between quicktest professional (qtp) and winrunner?

779


How do you open adobe acrobat file in QTP and do some testing on that file ?

835


Hi Friends, I worked with 8.2 not with 9.2. Please help me in this prob. I created one script and recorded some think and save as Test 1 then I opened process--open the object repository manager. Switch to file->save->give some name->save as Objectrepo1.tsr file. (This is the global repository file.) Then I went to object repository->tools-> associate repository ->click + icon ->open the previously saved Objectrepo1.tsr file. This is the global repository Now I created one more script and save as Test 2. In this script I am calling script with the Help of "Call of existing action" and I executed but QTP is not able to execute B’cos it is QTP is not able to read the Object Repository of Test 1. Please let me know why? Once I made Script 1 as a shared Obj. Repository so it would not give any Problem. Right?

1697


"What are the common constrains that we need to consider when we prepare testcases for ASP application". Thanks in Advance...

1673


Explain the types of properties that quick test learns while recording?

770


After executing the script in qtp suppose i found some script execute successfully and found some error.So how to report the status for both (i.e pass and fail report)in test director. For "fail" We use "defect tab" in testdirector. But for "pass" how to report it to TL.what is the process plz anybody ans

1902