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 |
how to acess a test in RSA?
What is the use of Debug Viewer?
How we can test a Frame in a web page?
Can we test internet application using QTP?
What are SetToProperty, SetRoProperty, GetToProperty scripting?
why do we use both location and index identifier.
How To Export The Screen Shoots Along With The Test Reports In QTP Version 10? Thanks In Advance SenthilKumar
Will QTP gets installed on virtual PC.What is the maintenance number to be given
i want click on a link which is in 3rd row and 2nd column of a web table.write script to execute
WHAT IS THE USE OF "FUNCTION GENERATOR" IN QTP?
how can we know the program is testing by multiple test data in data driven frame work?
How to add a page checkpoint to your test?