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

How will you check that your test cases covered all the requirements?

558


Explain about datafile/verification of date file when file is not available in local system?

2218


In qtp, how you can get the last character from a string?

551


Hi Sudhananda, plz send me the QTP framework with any diagram and PPTS . I want to switch to automatio, I done QTP from professional person, but he does not give me his knowledge properly. so pls help me Thaks send me on following address mirajkar.akash@gmail.com

1865


How to use the object spy in quicktest professional 8.0 version?

541






What is the difference between local and shared object repository in qtp?

556


What are parameterizing tests?

545


What r the different filters in defect in quality center

3277


What is the difference between keyword view and expert view?

603


When QTP object wait time is 10 seconds, and in test script wait time is 5 seconds and in function library wait time is 2 seconds how much time does the wait occur? or which is given priority.

1620


How to find operating system information using the qtp script?

580


i have two questions for regular expression :- Q1. I have date pattern eg-29/11/2011 29-11-2011 29.11.2011 Que- if any separator is there between date,month and year pattern should match else it should not match eg- pattern should not match in case of 2911-2011 Q2. let say i have a string and there is a number in between of that string eg.-Amount 30002.234 successfully credited to your account . now i have to match this pattern in such a way that even if decimal is not there pattern should match ,how i will do this using regular expression

1019


How is a Step generator used in UFT?

650


How do you compare the structure of 2 tables in database and check whether they are similar using qtp.

1470


An action has both shared and local OR associated with it and both have the same object in them. In the test which one will be considered?

568