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

A FORM CONTAINS 5 FIELDS. 1 FIELD IS ENABLED REMAINING(4) FIELDS DISABLED. MY QUESTION IS ENTER VALUES INTO 1 FIELD AFTER THAT CLICK TAB BUTTON THEN 2 FIELD ENABLE THIS PROCESS CONTINUE UPTO 5TH FIELD. HOW TO WRITE CODE IN DESCRIPTIVE PROGRAMMING. PLZ TELL ME THE PROCEDURE AND CODE FOR IT.

0 Answers   TCS,


How to call .vbs funtion , Library files in QTP? plz Explain indetail(chandana)

6 Answers   Wipro,


hello all i need some good sites or blogs which give info abt vb script with examples n real time scenarios.just like tutorials as i m new to qtp n vbscripting. its urgenttt

2 Answers  


How do you change Logical Name of the object in test script?

1 Answers   TCS,


How to switch between browser tabs? )moving from one tab to another tab)

1 Answers   CTS,


what is the smart identification techniqu?what r the different mechanisums used in it?

2 Answers   Accenture,


Can I use datatable of Action1 in the Action2.

2 Answers   IBM,


hi all, I want to know about the QTP scripts, i have read more books but all areis to be a theory so how can i improve my script skills. if anybody knows about qtp scripts plz guide me and i need a sample scripts.my mail id is karthis4u@gmail.com, 9986667831 If you all have any data send it to akadi111@gmail.com

3 Answers  


When I parameterize a script then for each iteration script is executed from begining to end. If I want to execute some middle steps multiple times using Parameterization (avoiding begining and end steps), what is the solution of this (e.g. total steps are 1 2 3 4 5 and i want 2 3 4 only(not 1 nd 5)

2 Answers  


Difference between image checkpoint and bitmap checkpoint

2 Answers  


How many types of actions are there in quicktest professional (qtp)?

0 Answers  


If the objects hierarchy is changing from build to build, then how you will handle that condition?

0 Answers  


Categories