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

how can i pass parameters into function?

4 Answers   Livetek,


what is the extension for QTP files?

16 Answers   American Solutions,


What is Object Spy in QTP?

11 Answers   vsworx,


what is key word driven frame work how to use keyword driven frame in QTP in a project

1 Answers   AppLabs,


Explain the concept of object repository and how quicktest professional recognises objects?

0 Answers  






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 .

2 Answers  


What is the use of environment variables?

1 Answers  


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

4 Answers   Semantic Space,


How many types of recording modes in qtp?

0 Answers  


Please explain about unicode compatibility in QTP. how we can able to use it. Please help me

1 Answers  


How will you send values to a cell in a webtable using QTP?

2 Answers  


How we will execute(run) the scripts in qtp 8.2?

1 Answers  


Categories