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

Output values? i want a practical example

1309


Want to verify notepad reports using QTP framework or any other BV script method. Can anyone share the method to achieve it? Eg. Person Name is the header and the actual name is John then how can we verify weather person name is John

2165


one screen page,that contains file , browse , update and cancel buttons.when we browse a file it should get update otherwise it should go to previous page.write negative test case for that.

1520


While spliting an action in QTP 10.0 getting an error : "This Line is a part of Script Block.You cannot split the action on this line." how to re-solve this and split the script into actions?

1419


How reliable are the site's Internet connections required to be? And how does that affect backup system or redundant connection requirements and testing?

694






What is data driver in qtp? Where we use it?

561


Explain the Different types of QTP test assets and their extensions?

603


How to connect the remote desktop using QTP 9.2 explain the method or procedure?

2799


What are the challenges you faced during you entire life automation ?

1001


Suggest and Define a solution for an application whose objects are not recognized by UFT?

666


How to delete an object from the object repository?

589


describe some problems that u had with automating testing tool?

1409


How can get count of list box?

631


What is Port testing. Whhen will you perform?

1496


how can we do the frame work in qtp

1597