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
What are the types of object repositories? Which one is you are using?
what is supply chain management?
Is there any relation between Keyword Driven Framework and Recording modes provided in QTP( whether Recording modes are applied on keyword driven framework or not?)
I used child objects to get the no of weblist present in the weblist.now i need to select the items present in each weblist ?How to do so
hi i have 4 yrs exp in manual and automation testing using QTP i need sample resumes plz can u send this mail id pbre1980@gmail.com
Can anyone pls tell me how to do action parameterization (input and output parameters) with respect to login window and insert order of flight reservation window in detail( pls give a clear step by step explanation with example) anyone please. Will be very thankful to u
How to test the login page in different ways in automation testing and i need code?
How to check which add-ins are associated with a test in qtp?
How can i initiate the objects to find uniquely in OR
What is the difference between qtp and selenium?
Explain the concept of how quicktest professional identifies object?
what is the latest version of QTP? Main difference between 9.2 and 10 version
How to execute the WR Script through QTP? I have WinRunner script with initialization script, common scripts, GUI AND functions. I connected WR through QTP with "call to WinRunner" option but I am getting problem after connecting to WinRunner i.e. showing "Do you want to quit now" with 'yes' and 'No' message box
How you calling actions in qtp?
How should I click on the right click menu objects When I trying to add the object properties to the OR.It is showing only Window(Window).Not all the objects of the window. Also while recording I found No script. How to solve this>.