If there are some browsers opened and I don't how many browsers are open, Now I want to close all the browsers that I don't know how many are opened.
What would be Descriptive programming for this in QTP using VB Script..???
Please send your answers.
Answer Posted / mogal
While Browser("creationtime:=0").Exist(0)
Browser("creationtime:=0").Close
Wend
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
can i compare two databases using 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); }
How you can replace string in qtp?
How to Get the Run-time value of an object under that web app under Test to the local data table sheet of that Action?
what is the hierarchy to use properties in descriptive programming
How many types of trigger events are there in qtp?
What is use of object spy?
How to test the login page in different ways in automation testing and i need code?
I have many listboxes in my application. I have to check whether the contents inside the listboxes are in sorted order or not..can anyone please send the code as early as possible
How to carry out bit map check points in QTP
what is run action?
How do know the number of browsers opened?
How to capture all the data of a webtable, weblist and combolist using QTP?
How will you compare keyword and expert view?
Is it possible to change the values of analog recording?