write a script to close all open browser in qtp except one
browser whose name is xyz
Answer Posted / manjunathareddy
Dim iIndex
iIndex=0
While Browser("CreationTime:="&iIndex).Exist(1)
Title=Browser("CreationTime:="&iIndex).GetRoProperty("title")
If InStr(Title,"xyz")=0 Then
Browser("CreationTime:="&iIndex).Close
If iIndex<>0 Then
iIndex=iIndex - 1
End If
Else
iIndex=iIndex+1
End If
Wend
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
what is the difference between built-i function and In-built function?
What are the major/ important methods, functions in QTP we use realtime testing
how do u plan test automation?
What are the types of object repositories? Which one is you using?
what is error and fault in terms of software quality?
1. What is the difference between Keyword and function in the keyword driven framework? 2. How do you associate Keywords to the script ?
i have to login into gmail loginpage i have to pass testcase into userid and password by using functions. the test case of user id is it should take only lowerletters alphabetin between 4 to 6 length.it should not take spectial letters.it should not take numbers.testcase for password is it should take numbers and it should not take alphabets note the following things must happen 1 when i give correct password and userid that password and userid should be seen in QTP result and notepad,xl sheet 2 when i gave in valid password the system willgive message please give valid password that particular messaage should be seen in QTP result,norepa and xl sheet
I want to do Certification course in QTP. For this I request you to suggest the best Tutorial in PDF format. Hence, if possible, kinldy mail PDF file to my mail-ID: sushmapokhriyal79@gmail.com
how can i call function (which has link with excell sheet at a remote location) within another function
Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.
What do you mean by checkpoints in qtp?
Explain how Does Run time data (Parameterization) is handled in QTP?
why should we give deliver good quality software?
what is description object?
How to do call a output parameter from one action to another action??/