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



On a web application I want to select list item 5 from a dropdown list. but QTP identifying this o..

Answer / ashok kumar

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

On a web application I want to select list item 5 from a dropdown list. but QTP identifying this o..

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

On a web application I want to select list item 5 from a dropdown list. but QTP identifying this o..

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

On a web application I want to select list item 5 from a dropdown list. but QTP identifying this o..

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

Post New Answer

More QTP Interview Questions

Why to use descriptive programming?

0 Answers  


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.

3 Answers  


Explain about Standard output value, Text output value, database o/p value, Xml O/p value, Xm o/p Value

1 Answers   TCS,


Suppose if a functionalityis not mensioned in requirement document and but its present in application. will it be consider as a bug and viceversa?

2 Answers  


in a web page How to check and display a particular word from a paragraph?

0 Answers  






What is the difference between Call to Action and Copy Action.?

2 Answers  


How can you connect the database with QTP?

3 Answers  


What is the difference between two actions?

1 Answers   Wipro,


how qtp handles customised object

1 Answers  


By using QTP, How do you test a frame in a web page?

4 Answers   TCS,


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.

3 Answers   IBM, TCS,


how to reverse the string without using bultin functions(i.e mean mid,len ,reverse functions)

6 Answers   GE,


Categories