if there r 10 windows open in QTP write a command to close
all 10 windows at a time ?
Answer Posted / mogal
Method1:
While Browser("creationtime:=0").Exist(0)
Browser("creationtime:=0").Close
Wend
Method 2:
Set odesc = Description.Create
odesc("micClass").Value = "Browser"
Set oBrowCO = Desktop.ChildObjects(odesc)
For i = oBrowCO.Count - 1 to 0 Step -1
Browser("CreationTime:="&i).Close
Next
method 3:
Systemutil.CloseProcessByName "Chrome.exe"
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How we can use the database checkpoint on a java web based application in which the database connectivity is done using JDBC->Pure Java type (in this type there is no need to create a DSN). At present in QTP we can fetch database values using checkpoint only through DSN. Is there any programming for this if we don't have DSN (ODBC)
Describe the differences between functions and actions in UFT?
Hi, Hope you viewers are doing fine with good health. What are the steps and connection parameters to connect to Oracle db ? Can you connect with just the Oracle client or Oracle XE ? Cheers!!
Does quicktest professional (qtp) is unicode compatible?
What is data driver in qtp?
Hai anyone please "Explain about Framework in QTP?"
What are the technics follow in writing VB script?
Connect to QC using AOM.
I hav installed QTP8.2, im working on webapplication, while running the script giving error msg like "QTPro.exe generated errors and will be closed by windows. You will restart the program. An error log is being created". Pls anybody what is the problem, what i have to do for this? Thanks...
How do Parameterization and Data-Driving relate to each other in QTP?
Dear sir, i want to perform a QTP automated testing for mechancial engineering software like msc adams, msc nastran this softwares will help for mechanical engineering design analysis>> i know oad runner win runner, test director, QTp>> but i dont know how to use for automation
Why is action split used by qtp?
What is fragmentation and paging?
If I change the property value at runtime is it effect is object repository?
After fixing the bug, the same bug is raising again and again in new builds what we have to do? That bug is high level bug.