write a script to close all open browser in qtp except one
browser whose name is xyz
Answer Posted / milan das
Set objbrowser=description.Create
objbrowser("micClass").value="Browser"
Set objbrwcnt=Desktop.ChildObjects(objbrowser)
msgbox objbrwcnt.count
For i=0 to objbrwcnt.count -1
If objbrwcnt(i).GetRoProperty("name")<>"xyz" Then
objbrwcnt(i).close
End If
Next
Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What should we say if interviewer asks "What is ur project architecture?".......Can any one help me with clear information.?????????
.have you ever written compiled module? if yes , tell me about some of the function that you wrote.
How the exception handling can be done using quicktest professional?
Can any one brief some detail on how the shared and action object repository utilized/implemented in a real time project. I already know how to make shared object repositor by saving OR as .tsr extension..I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thanks
How to create runtime property for an object?
Explain about business process component? types and usage?
how do i know how to use tools
Could anyone help me for the below scenario: i am using the descriptive programming for my account, in which we have to generate the contract in the MS-word. when i generate this doc, we need to click on enable macros to continue further. but i am unable to make qtp to click on this. if anybody faced the problem like this??? pls help to get it resolved? Thanks in advance
what is vmodel?advantages and disadvantages of vmodel?
Your roles and responsibilities and daily tasks? (As automation tester)
What does mean by Scope of Automation?n How we defined it?
How can we extract data like "Details","Result","Time" from the 'Run Error' result generated in QTP after run time errors are generated during a run & import the details etc...into excel sheet
banking project description for software tester
What is the use of running the scripts in Hidden-mode in UFT?
What is difference in global and action sheet in qtp?