how to select particular value from the combobox in the
current page which is entred in the previous page editbox
after parameterization?

Answer Posted / priya

' to Parameterize
browser().Page().Webedit().set DataTable("A",dtglobalsheet)

'fetch value from edit box at runtime
ItemToSelect = browser().Page().webedit().GetRoProperty
("value")

'Now get number of rows in combobox
x = browser().Page().webList().GetRoProperty("items count")

'loop through each item n try to match
for i = 1 to x
actualvalue = browser().page().weblist().getitem(i)
if(actualvalue = ItemToSelect)then
browser().Page().weblist().select actualvalue
exit for
endif
next

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

There is an built in window application in qtp9.1,i.e.Flight4.0.i want to implement the recovery maneger on it.How can i do this?

1632


How to remove associated function library?

570


What is the syntax to call one action in another?

561


what is Property......End Property loop? how to write sript for it in QTP

1906


Which scripting language used by quicktest professional?

544






could any help me please, how to work on visual foxpro application using UFT

1709


Write the code for,In the page screen we have total 10 Links,out of these I have to click 9th link

878


What is the Difference between copy to action and call to action?

595


If I am scripting Web-based Surveys using QTP that open up differently but at the exact same point require a username and password can I automate that username and password for all the surveys some how using QTP?

1448


Is it possible to call win runner script in qtp?

636


How qtp recognizes the object?

681


hi frinds i need help .i have 4 + yrs exp in testing and nearly 2 yrs exp in QTP and QC .currently iam working north fast 2 yrs iam looking for job in south is there any openings plz letme know my mail id is pbre1980@gmail.com

1580


How can we use the "CreateObject("Shell.Application")" in QTP and what is the definition and purpose of it?

3064


Hi How to retrieve data from web element line by line?

1577


How Can I find the least value in a bunch of variables using qtp.. E.g.:- A = 210, B = 212, C = 60, D = 111 I don’t want to write bunch of lines for this…. Is there a way to get the result in one line…..

1637