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 |
I am new to automation testing.I am learning QTP 9.2.my question is how to install the defferent addins(other than Default Addins) is there any defference in QTP after installing the Addins.where we can get the addins?
What are the benefits of quick test pro(qtp)?
what r the main attributes of test automation?
Which object model is not supported by QTP? a)COM b)DECOM c)DOM d)DCOM. Pls explain about theese object models?
is it possible to change the date format like MM/DD/YY into DD/MM?YY through script in QTP
what are the design objects in qtp
what is virtual object?
How to Test the mainframe application?(tell me few basic things)
In the website, the protocol has been changed http: to https what you will do? Tell me your approach?
Give answer with example what is orthogonal array testing technique?
If an application name changes frequently i.e while recording it has the name, in this case, how do qtp handles?
While scripting do we use any reference. may be we have 2 0r more same objects that time how do we write scripts