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
Explain the difference between data driven testing and parameterization ?
What is the difference between the design-time and run-time data tables?
how can i pass a "automation script" as a parameter in a function give me need full suggestion thank inadvance
Pls can anybody send me the Recent Technical and Interview Questions Which were asked in IBM(QTP)Automation PLZZZZZZZZZ
how to i add the values using the check points property?( i.e valid data(for valid data it's giving the footer message:value is added) and for invalid data: special chars, spaces,Duplicates and null values (in my page when ever we enter special chars, spaces and null values, it's giving the proper warning message and for Duplicates it's giving the footer message:"value already exists)?
Name the different types of recording modes?
What is checkpoints for quicktest professional?
How many types of parameters are there?
give me an example where u used good judgement and logic in solving a problem
Hi ,Can any one pleas explain how to test splash objects using QTP?
Explain the difference between check point and output value?
Give me some real time point of way where exactly we can conduct audits?
What is data driver in qtp?
For example you are checking bit map check point before coming to the results. How can you say it is passed? Or failed? Anyways?
Want to verify notepad reports using QTP framework or any other BV script method. Can anyone share the method to achieve it? Eg. Person Name is the header and the actual name is John then how can we verify weather person name is John