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
Can we use index on view?
what is profile tool?
How to start recording using quicktest professional?
How to find operating system information using the qtp script?
How to run a test using quicktest professional (qtp)?
HI Everybody, I am using QTP 9.2, I have a problem and hope everybody help me solve it. Now I need to use mouse wheel event to zoom in or zoom out in web client, but QTP can't catch this event. I look forward helping of everybody. Thank you very much.
Hi All, I Want To excute scripts batch without using QC .I need code for that Thanks Balaji
i have doubt suppose iam purly working in manual, when i will get work to do on sql and performence testing? pls any one clarify doubt?
what is description object?
What is difference between run time object and test object?
how can we preform retesting(DATA driven test) using function please gine the code for loginpage
how to find that tools work well with ur existing system?
Can we create user defined functions in qtp?
Key word driven framework
What are the types of data tables in qtp?