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
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?
How to remove associated function library?
What is the syntax to call one action in another?
what is Property......End Property loop? how to write sript for it in QTP
Which scripting language used by quicktest professional?
could any help me please, how to work on visual foxpro application using UFT
Write the code for,In the page screen we have total 10 Links,out of these I have to click 9th link
What is the Difference between copy to action and call to action?
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?
Is it possible to call win runner script in qtp?
How qtp recognizes the object?
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
How can we use the "CreateObject("Shell.Application")" in QTP and what is the definition and purpose of it?
Hi How to retrieve data from web element line by line?
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…..