Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
2 process opened for ie help
#1
Solved: 11 Years, 3 Months, 2 Weeks ago
hi i am trying to close all opened internet explorer using task manager

i have used for loop to close all the error by getting the number of ie opened
but its only perform this operation for oneiteration and from 2nd itearation it throws the folln error

"not found "


Reply
#2
Solved: 11 Years, 3 Months, 2 Weeks ago
I can see a few issues here and some common mistakes. Without seeing your code its hard to say exactly. Common mistakes are to not start with "0" in the loop. Vbscript arrays are zero based. Maybe all the processes ended, but you are still trying to process one. use "On error goto 0" to override VBscripts stop on line with error and then handle the event manually.

If nothing works, post more of your code.

Hope this helps.

Reply
#3
Solved: 11 Years, 3 Months, 2 Weeks ago
thank u i will try again and will post the code here




Reply
#4
Solved: 11 Years, 3 Months, 2 Weeks ago
Why are you looping through task manager? Any specific purpose?
If my req is simply to close all open IE then i would use
Systemutil.closeprocessbyname "iexplore.exe"
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply
#5
Solved: 11 Years, 3 Months, 2 Weeks ago
ha ha that was simple solution
from now i will try to keep my scirpt simple
but i have doudt that

when i trying to close the ie process from the task manager
first issue
i can see that there are 2 process for each ie opened

second issue
no matter how many ie are opened qtp closes them all in first iteration

thats is the reason for the second loop it gives "not found" error





Reply
#6
Solved: 11 Years, 3 Months, 2 Weeks ago
2 Process for each IE - Restart the machine and try again. It never happens that way.

no matter how many ie are opened qtp closes them all in first iteration
thats is the reason for the second loop it gives "not found" error - Restart should resolve the issue if you are using the right code. However, would you mind pasting the code?
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Control to spawned process DomG 1 1,151 07-03-2020, 07:21 PM
Last Post: Ankur
  Killing the windows process using QTP Script. nagaraj_kv 4 19,207 05-03-2012, 01:13 PM
Last Post: Ankesh
  QTP Business Process Testing vijaya2009 1 4,846 01-11-2012, 11:38 AM
Last Post: nileshpatil70
Exclamation Very Slow Response time of WpfApp when QTP is opened. krr 1 3,396 11-23-2011, 09:06 AM
Last Post: sowmya
  how to check if correct page/Browser is opened uma87 2 9,654 08-04-2011, 03:02 PM
Last Post: sshukla12

Forum Jump:


Users browsing this thread: 1 Guest(s)