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
hi can anybody help with an qtp 9.2 license key please. Thanks, Nitesh.
What are the main differences of qtp and win runner?
if numbers are always changing write a script for that
How do you open adobe acrobat file in QTP and do some testing on that file ?
Is it possible to change the property value at runtime? How it is possible?
Explain quicktest professional testing process?
How to modify the text checkpoint?
What are the ways you can synchronize?
Get the count of files of similar types from a folder.
I AM TRYING PORT CODE FROM WINRUNNER TO QTP AND DON'T KNOW TO HOW TO CHECK THE ERRORS. IN WINRUNNER FUNCTION RETURNS EIGHER 0 OR -1 AGAINST WHICH RESULT CAN BE MADE PASS OR FAIL BUT IN QTP I DON'T SEE FUNCTIONS RETURNING ANY VALUE. APPRECIATE IF ANYONE COULD HELP ME CONVERTING FOLLWOING WINRUNNER CODE TO QTP. set_window("Customer Service"); rc = web_obj_get_text("Summary","#2","#4",ssn,""," ",1); if (rc != E_OK) { report_msg("[GetSubscriberSummary] Could Not get subscriber SSN; rc = "&rc); myRC = rc; } else { ssn = StripBlank(ssn); if (DEBUG) report_msg ("[GetSubscriberSummary] SSN: "&ssn); }
What are the various automation frameworks available in qtp?
Can we record using all the modes in a single script? Explanation with example is appreciated
In qtp, how you can use xpath to identify objects?
Explain how to use QTP to check broken links on a page?
When you open QTP, how many sheets you can see?