Google News
logo
QTP/UFT - Interview Questions
How do you close the second browser that has been opened using UFT?
The "creation time" feature can be used to determine which browser instance was opened after another. This is nothing more than a counter for each browser instance that is launched. It starts at 0 for the first one and goes up from there. You can use the following code to close the second browser that has been opened :
Browser("creationtime:=1").Close
Advertisement