Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


I have 14 itmes in a drop down that are associated with an
account And these items change with different accounts

I want to be able to define it by and index number or any
other id so if I enter 2 in my Global excel sheet it
selects the 2nd item from the drop down - is this possible?

Answers were Sorted based on User's Feedback



I have 14 itmes in a drop down that are associated with an account And these items change with dif..

Answer / puruhsotham

Hi,
It is very much possible to get List Items by passsing
Index from Excel.

Syntax:
Browser("e-OSCAR").Page("e-OSCAR").Frame("Main").WebList
("Listbox").Select 1 (One is Index, else u canpass variable
after importing value to variable )

Is This Answer Correct ?    3 Yes 0 No

I have 14 itmes in a drop down that are associated with an account And these items change with dif..

Answer / azeemuddin

thanks alot

i tried

Browser("e-OSCAR").Page("e-OSCAR").Frame("Main").WebList
("Listbox").Select "#1"

worked grt

Is This Answer Correct ?    1 Yes 0 No

I have 14 itmes in a drop down that are associated with an account And these items change with dif..

Answer / babu

Hi,
Even i have the same problem. I have to get the values from
the weblist which i am not able to. I tried with the script
mentioned above. It is not working for me.
Can anyone help me out to retrieve the data from the
weblist.

Is This Answer Correct ?    1 Yes 0 No

I have 14 itmes in a drop down that are associated with an account And these items change with dif..

Answer / nilanjan saha

Suppose we have total 14 items in the weblist...It means that

x=Browser("XYZ").Page("XYZ").Frame("something").WebList
("Listbox").GetROProperty("items count")

msgbox x ' It should print 14

if you want to print all the values of the weblist then use
for loop for that purpose:

For i=1 to x
msgbox Browser("XYZ").Page("XYZ").Frame("something").WebList
("Listbox").getItem(i)
Next

Hope above code will help...

Regards,
Nilanjan

Is This Answer Correct ?    0 Yes 0 No

I have 14 itmes in a drop down that are associated with an account And these items change with dif..

Answer / jaipalreddy

try with this
option explicit
dim a
a=Browser("name:=Google").page("name:=Google").WebList
("name:=State).GetItem(1)
msgbox(a)

Is This Answer Correct ?    1 Yes 2 No

Post New Answer



More QTP Interview Questions

How many type of status messages are there ..explain?

5 Answers  


What are the views available in quicktest professional?

0 Answers  


how your doing reporting in your script?

1 Answers   IBM,


I have written some script in QTP and i added those objects in Object Repository. All written script has been executed successfully. After few days when i tried to execute the same script i got error message "objects not found in Object Repositiry". How can we solve this issue?

3 Answers  


Explain the check points in quicktest professional (qtp)?

0 Answers  






How to add a runtime parameter to a datasheet?

1 Answers   Crea,


Where can I find and view run-time data table?

0 Answers  


What is smart identification?

2 Answers   Ordain Solutions,


how to retrieve the column headers in database using vbscript statement in QTP

1 Answers  


suppose our project is developed using java technologies.after complition of the coding developer relesed a build to the testing team.so, what is the process means how we open that documents?what are that documents?plz give reply its urgent

2 Answers  


In website, protocol has been changed http:to https what you will do? tell me your approach?

1 Answers  


how we connect oracle or sql data server database to qtp

3 Answers   Tanla Solutions,






Categories