A web Page has 2 frames. Find out the number of weblist
items in the second frame of the page.

Answer Posted / sesibhushan



set FrameObj=Browser("micclass:=Browser").Page
("micclass:=Page").Frame("micclass:=Frame","index:=1)

Set wList=description.create
wList("micclass").value="WebList"

set wListObj=FrameObj.ChildObjects(wList)

wListcount=wListObj.count

msgbox wListcount

Is This Answer Correct ?    30 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the five challenges you faced in QTP?

2755


What is the extension of the qtp local repository?

568


How do you delete unwanted results in qtp?

608


How extensive or customized are the server logging and reporting requirements; are they considered an integral part of the system and do they require testing?

574


Our company is having a windows client server application developed in vb.net. so there is a treeview and i am not in a position to record the click events in QTP. so kindly help. Vivek

1571






What are the key elements available in test result window?

630


Thanks....But can u tell me how i use the QTP for GIS with one Example...

1436


In qtp, explain what is qrs file?

590


Can we create a qtp test from qc?

591


what is the hierarchy to use properties in descriptive programming

1505


What are parameterizing tests?

552


give me an example where u used good judgement and logic in solving a problem

3365


is it possible to add sheets to excel at runtime

3238


i have an external excel datasheet where it only contains 3 rows. after qtp executed the code to import the datasheet, the datatable getrowcount method now gives me a different value, lets say 60,000+ instead of only 3. i did not have any values starting from row 4 of my excel file. why is this happening? this also results to the qtp report to load for a very long time.

1542


Can any one say what exact diff between test->parameters, action properties-> parameters. after defining the parameters in test->settings, how can we access those parameters.(i know how to use action prop parameters)

1627