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.



My company has recently started using Ajax for building UI and QTP is nor recognizing the drop dow..

Answer / 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

More QTP Interview Questions

What is the difference between Keyword Driven test and Data Driven test?

0 Answers  


How to create frame work for qtp?

1 Answers   Bank Of America, Polaris,


how do u prepare Test Environment ?

1 Answers  


What is QTP’s model for test creation?

0 Answers  


How you calling actions in qtp?

0 Answers  


Can you list some technologies that support qtp?

0 Answers  


Did you find anything in your project that QTP proved inefficient to perform?

1 Answers  


What are different versions in Win Runner ,QTP ,Load Runner and Test Director till now and atleast please let me know new features for each version. Ex QTP8.2,QTP 8.5.QTP9.2 supports Mozilla 2.0

1 Answers   DELL,


Test Life cycle starts IS it Requirments stage or Test Initiation?

1 Answers  


Any limitation to XML Checkpoints?

1 Answers  


what is the exact Diff. Between Test and Component in QTP?

1 Answers  


can u write Script to do Data Driven Testing throuh Externel & internel XL Sheet

2 Answers   Relq,


Categories