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 |
Why to use descriptive programming?
hello, i was install Q.T.P.8.2 in windows xp version .when i am running my programs all the desktop icons are disappear why so. please guide me anybody how can i come out side this problem.
Explain about Standard output value, Text output value, database o/p value, Xml O/p value, Xm o/p Value
Suppose if a functionalityis not mensioned in requirement document and but its present in application. will it be consider as a bug and viceversa?
in a web page How to check and display a particular word from a paragraph?
What is the difference between Call to Action and Copy Action.?
How can you connect the database with QTP?
What is the difference between two actions?
how qtp handles customised object
By using QTP, How do you test a frame in a web page?
How to Synchronize the Browser at Field level? For example if you put Browser.sync(), its waiting upto for that Browser sync only. It should wait total Browser get upload with fields.
how to reverse the string without using bultin functions(i.e mean mid,len ,reverse functions)