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 do you done Data-driven test using MS-Word Instead of DataTable
How can i use Ordinal identifiers and Smart identification methods suppose i want to know the index no of check box
what is a good testcase?
what is the Debug view?
I am executing a batchfile.In one script on one Button i have inserted a checkpoint.It is in a loop,my checkpoint is going to fail sometimes.That failed results only I have to log in a file.How it's possible...pls give the solution for this?
What are the types of Object Repositories in QTP?
write a qtp script to enter user name & password for flight reservation login page from excel sheet
On what basis we select test cases to automate?
How can i count the list box elements in QTP ?using script plz explain me (Chandana)
Brief the process of testing with UFT?
what are the Tools for version control?
what is test scheduleling?