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

I am facing an issue of object identification with the dropdown element of DHTML grid. When I tried to recognize these different dropdown objects, QTP identifies only one object for all the dropdowns. Hence, selection of different data from different dropdowns list is an issue. To overcome this problem, i have used Descriptive Programming technique by creating different object descriptions which have all the other properties same but differ only in one property i.e. ‘X’ location of the element on the screen. Hence, i have created distinct object descriptions that would allow us to select values in different dropdowns. The code is given below. But still I am unable to identify distinct dropdown objects. ‘Object Description for Dropdown Cell Status Set objCellStatus = Description.Create objCellStatus("micclass").value = "WebList" objCellStatus("name").value = "select" objCellStatus("x").value = 219 ------ ‘X’ Axis value for cell status drop down ‘Object Description for Dropdown Sub Segment Set objSubSegment = Description.Create objSubSegment("micclass").value = "WebList" objSubSegment("name").value = "select" objSubSegment("x").value = "319" ------ ‘X’ Axis value for sub segment drop down Please help... This is specific to DTML grid(Drop down object)

1408


How many ways we can parameterize data in quicktest professional (qtp)?

581


What are the properties you would use for identifying a browser and page when using descriptive programming?

627


What are the different types of recovery operation?

549


Describe function procedure in vbscript.

549






What is quick test pro?

586


How to modify the text checkpoint?

611


Explain more about the Test Fusion Report of QTP?

603


What is the expert view?

547


What is keyword driven framework?

616


In a flight window we have to enter the name and meal request for every passenger.In that window if we give Total passengers=1 then the Psngr1 name field and psngr1 meal request field will reflects.if we give Total passengers=2 then Psngr1 name field and psngr1 meal request field,Psngr2 name field and psngr2 meal request field will reflects and so on.if total psngrs=100 then will we capture all the fields for the psngrs to Automate the app how we can handle this scenerio thru Descriptive programming?

1450


Why do we use "Text checkpoint" If we can make use of it in "standard checkpoint" ?

1480


Hi we are running tests remotely from quality center and pushing tests into qtp boxes remotely, and it does execution but while uploading results back into quality center it hangs in qtp box.If any one come across similar problem, please send me details how to handle this. Thanks kris

1740


can test automation improve test effectiveness?

1484


How many types of recording modes in qtp? Which will be used when?

547