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
I want to read XML file loaded in Quality center and compare the values with the values displayed in Application (web table).How can I do that
what is the difference between rational rose and QTP? WHICH TOOL IS BETTER TO LEARN? PLEASE SEND ME AT sana_50218@yahoo.com sandeep@epuratech.com
Why script error occur in between recording in qtp?
Is it possible to refer the same object for referring more than one object that are of different class using the descriptive programming approach? Suppose my code is 'To create the object named as obj Set obj=Description.Create() 'To define the values obj("title").value="IE" obj("type").value="text" obj("html tag").value="INPUT" 'To set the value Browser("IE").Page("Yahoo").WebEdit(obj).Set "xyz" Can I refer the "obj" object for the three objects like Browser,page and webedit objects? If so how?
How does qtp identify the object in the application?
Does quicktest professional is unicode compatible?
what is the diff b/w assistive and mandatary rules of object repository in QTP???
Can any body please tell me the steps of keyword driven framework of QTP.
Can any one brief some detail on how the shared and action object repository utilized/implemented in a real time project. I already know how to make shared object repositor by saving OR as .tsr extension..I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thanks
what is the difference between modular framework & datadriven framework
For example you are checking bit map check point before coming to the results. How can you say it is passed? Or failed? Anyways?
For which type of projects the iterative model is not suitable?
what is object and child object.. explain ..if possible give some example for better understanding ..
how to test load test and block box testing an a web based application pls give ans briefly
describe some problems that u had with automating testing tool?