Hi, This can be included as a function and you can call it in tear down. I use it as a common function and call the function in teardown of every class to clear all leaked threads.
I guess the the process id is not getting identified in your code. Else you can change the logic for identifying the process id and use for process in processes do if process.Name.include? "rubyw.exe" then #~ puts "Name: #{process.Name}" puts "Process ID: #{process.Pid}" else end end this process_id parameter can be passed in your at _exit - Process.Kill function See if this works Thanks Rakesh -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com