My company has recently started using Ajax for building UI
and QTP is nor recognizing the drop down list for
selection.It recognises it as a general Web Element or Web
Table. I have added individual selections from the drop
down as web Table. It works as long as the page is not
refreshed. I need some help and inputs as to how to make
QTP recognise a drop down list for selection. Any help will
be appreciated.

Answer Posted / jp

Hi,

Before selecting the list item, check for the the list box
exist.

Try this code
If Browser("title:= Application").Page("title:=
Application").WebList("html id:= property name").exist then

Browser("title:= Application").Page("title:=
Application").WebList("html id:= property
name").Select "name"

Else

Msgbox "Drop down List box not available"
End If

If the list box exisit does not work add one more property
for the WebList like- WebList("html id:= property
name","items count:=11").exist

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I want to read XML file loaded in Quality center and compare the values with the values displayed in Application (web table).How can I do that

1402


what is the difference between rational rose and QTP? WHICH TOOL IS BETTER TO LEARN? PLEASE SEND ME AT sana_50218@yahoo.com sandeep@epuratech.com

2319


Why script error occur in between recording in qtp?

1772


Is it possible to refer the same object for referring more than one object that are of different class using the descriptive programming approach? Suppose my code is 'To create the object named as obj Set obj=Description.Create() 'To define the values obj("title").value="IE" obj("type").value="text" obj("html tag").value="INPUT" 'To set the value Browser("IE").Page("Yahoo").WebEdit(obj).Set "xyz" Can I refer the "obj" object for the three objects like Browser,page and webedit objects? If so how?

1581


How does qtp identify the object in the application?

541






Does quicktest professional is unicode compatible?

528


what is the diff b/w assistive and mandatary rules of object repository in QTP???

1616


Can any body please tell me the steps of keyword driven framework of QTP.

1570


Can any one brief some detail on how the shared and action object repository utilized/implemented in a real time project. I already know how to make shared object repositor by saving OR as .tsr extension..I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thanks

1900


what is the difference between modular framework & datadriven framework

1599


For example you are checking bit map check point before coming to the results. How can you say it is passed? Or failed? Anyways?

620


For which type of projects the iterative model is not suitable?

1437


what is object and child object.. explain ..if possible give some example for better understanding ..

1534


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

1361


describe some problems that u had with automating testing tool?

1418