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 do you done Data-driven test using MS-Word Instead of DataTable

3 Answers   IBM,


How can i use Ordinal identifiers and Smart identification methods suppose i want to know the index no of check box

1 Answers  


what is a good testcase?

3 Answers   Wipro,


what is the Debug view?

1 Answers  


I am executing a batchfile.In one script on one Button i have inserted a checkpoint.It is in a loop,my checkpoint is going to fail sometimes.That failed results only I have to log in a file.How it's possible...pls give the solution for this?

6 Answers   Wipro,


What are the types of Object Repositories in QTP?

9 Answers  


write a qtp script to enter user name & password for flight reservation login page from excel sheet

1 Answers  


On what basis we select test cases to automate?

0 Answers  


How can i count the list box elements in QTP ?using script plz explain me (Chandana)

6 Answers   Wipro,


Brief the process of testing with UFT?

0 Answers  


what are the Tools for version control?

3 Answers  


what is test scheduleling?

0 Answers   IBM,


Categories