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 / 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 |
What is the difference between Keyword Driven test and Data Driven test?
How to create frame work for qtp?
1 Answers Bank Of America, Polaris,
how do u prepare Test Environment ?
What is QTP’s model for test creation?
How you calling actions in qtp?
Can you list some technologies that support qtp?
Did you find anything in your project that QTP proved inefficient to perform?
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
Test Life cycle starts IS it Requirments stage or Test Initiation?
Any limitation to XML Checkpoints?
what is the exact Diff. Between Test and Component in QTP?
can u write Script to do Data Driven Testing throuh Externel & internel XL Sheet