On a web application I want to select list item 5 from a
dropdown list. but QTP identifying this object as
winobject. Then how can we select list item 5 from that
dropdown list.
Answers were Sorted based on User's Feedback
Hi,
1. Are u using IE browser?
2. Have u opened the browser after QTP opened?
If u opened the IE browser after the QTP,
then, object will be record as Weblist, if you want to
select more than one value from list, try "ExtendSelect"
For ex:
Browser(".*").Page(".*").WebList(".*").Select "A"
Browser(".*").Page(".*").WebList(".*").ExtendSelect "B"
Browser(".*").Page(".*").WebList(".*").ExtendSelect "C"
Is This Answer Correct ? | 7 Yes | 3 No |
Answer / santhosh
1.FIRST LAUCH THE QTP AND LAUNCH THE APPLICATION AND THEN
CHECK IT OUT
2.DISABLE SMART IDENTIFICATION AND TRY
AND WHILE SCRIPTING U CAN USE
BROSER(" ").PAGE(" ").WEBLIST( " ").GETITEM(5)
this wil get u item 5
plesae revert back it this doesnot work
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / baby
in case of IE it identifies as winlist, to select a particular value say for eg, as '5'
For ex:-
Browser(" ").Page(" ").WebList(".*").Select(4)
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / kartheekmavuluru
It 's not possible. QTP will always identifying this object as
WebObject in Web application.
Is This Answer Correct ? | 1 Yes | 6 No |
how can i pass parameters into function?
what is the extension for QTP files?
16 Answers American Solutions,
What is Object Spy in QTP?
what is key word driven frame work how to use keyword driven frame in QTP in a project
Explain the concept of object repository and how quicktest professional recognises objects?
Hi .. i want to write the script for the combo nox list . For example if any combo box having a multipul itme. So how can i retrive each item for each iteration ? help me out .
What is the use of environment variables?
How do u write regular expression for a window name which is changing for each build ? i.e. in first build the window name is : "computer graphics are very ...." . in second build the window name is : "computer graphics can be created" . - Appreciate proper replies
How many types of recording modes in qtp?
Please explain about unicode compatibility in QTP. how we can able to use it. Please help me
How will you send values to a cell in a webtable using QTP?
How we will execute(run) the scripts in qtp 8.2?