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

how to acess a test in RSA?

0 Answers   IBM,


What is the use of Debug Viewer?

0 Answers  


How we can test a Frame in a web page?

1 Answers   eMids,


Can we test internet application using QTP?

2 Answers   Quinnox,


What are SetToProperty, SetRoProperty, GetToProperty scripting?

2 Answers  






why do we use both location and index identifier.

2 Answers   Polaris,


How To Export The Screen Shoots Along With The Test Reports In QTP Version 10? Thanks In Advance SenthilKumar

1 Answers  


Will QTP gets installed on virtual PC.What is the maintenance number to be given

1 Answers  


i want click on a link which is in 3rd row and 2nd column of a web table.write script to execute

2 Answers   IBM,


WHAT IS THE USE OF "FUNCTION GENERATOR" IN QTP?

9 Answers   CTS,


how can we know the program is testing by multiple test data in data driven frame work?

1 Answers   CTS,


How to add a page checkpoint to your test?

1 Answers  


Categories