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
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 |
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 |
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 |
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 |
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 |
Once the Actions are splitted , is there any way to merge them
how to write code for to select all the checkboxs in the gmail i wrote code for my question but it didn't works any body suggest what wrong my code my code is Set chkboxDesc=Description.Create() chkboxDesc("type").value="chekbox" Set chboxcollection=Browser("name:=Gmail .*").Page("title:=Gmail .*").ChildObjects(chkboxDesc) For i=0 To chboxcollection.count-1 chboxcollection(i).set "ON" Next i was getting general run time error pls help me i am in learing stage
Explain different types of checkpoints?
QTP supports both client server and Web applications. Does it support Plug-in?
After Creation of your QTp frame work, The folders are saved in VSS or Other. plz explain brifly?
if there is two login button in your page, how you know that this login button is correct for login .
In QTP for .net application which plug in is used? For Java Application which plug in is used ?
2 Answers AppLabs, Fraze Tech,
Give me an example where you have used a COM interface in your QTP project?
What will be the script for recovery scenerio.plzanyone give ans with aexample related to banking project
how we connect oracle or sql data server database to qtp
IF there are seven browsers with same name open. I want to close one particular browser thru QTP. how can i do this?
How can we test an XML using QTP? I have been to an interview, where they have given me an XML which had 15 values and they have given those values on a separate page. They asked me to write a QTP script to check the XML is having those particular 15 values.