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
Output values? i want a practical example
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
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.
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?
How reliable are the site's Internet connections required to be? And how does that affect backup system or redundant connection requirements and testing?
What is data driver in qtp? Where we use it?
Explain the Different types of QTP test assets and their extensions?
How to connect the remote desktop using QTP 9.2 explain the method or procedure?
What are the challenges you faced during you entire life automation ?
Suggest and Define a solution for an application whose objects are not recognized by UFT?
How to delete an object from the object repository?
describe some problems that u had with automating testing tool?
How can get count of list box?
What is Port testing. Whhen will you perform?
how can we do the frame work in qtp