In web page there is five OK buttons available, while
recording i click on 3rd OK button, How QTP identify the 3rd
OK button while running script? Is qtp identify 3rd ok button?
Answer Posted / sarojini
use index proeprty to close the 3rd ok button.
use for loop condition like
For i= 0 to 10
okbuttonvalue=Broswer("").page("").button
("index:="&i).getroprepoerty("value")
Next
by using this for loop condition you can get index value
from above logic take index value put in the line close the
third button
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the different kinds of test steps?
If I give some thousand tests to execute in two days what do you do?
Explain types of descriptive programming?
Explain object spy in qtp.
What are the general steps involved in the data driven framework?
How to use debug tools?
How does qtp identify gui object?
Explain in brief about the qtp automation object model (aom).
How to start recording using quicktest professional (qtp)?
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); }
I want to capture data(using keyword) from msdos application using QTP?... Below is little work i could do on it... /* Set app=CreateObject("Wscript.shell") SystemUtil.run ("C:\Users\Agent\Desktop\pumpsim\PUMPSIM.EXE") Window(“PUMPSIM.EXE”).Activate wait(3) app.sendkeys "N" */ Thanks in advance...!!!
Why bpt?
what is the difference between IE & Netscape in web testing on a log in page
How many types of trigger events are there in qtp?
When you open QTP, how many sheets you can see?