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 |
What are they Advantages and Disadvantages in QTP 9.2?
How to use the object spy in quicktest professional (qtp) 8.0 version?
How many types of Actions are there in QTP?
how can i add an action(external action) programmatically?
wt is automation framework? give explonation?
Tell me Three major differences between QTP & Winrunner?
what are the utilities and drivers
describe some problems that u had with automating testing tool?
Hi everybody, Can anybody tell me that how the QTP frameworks are implemented . I wanted to know with examples . Thanks in advance
How we can add actions in the test using QTP?
Connect to QC using AOM.
How to retrieve particular cell data in excel sheet ?without importing method.