28Jul/08Off
Q. How do I detect if Internet Explorer is already running inside a watir script?
A. Use %x{} to run a sub process that calls tasklist.exe ...
Example watir:
if %x[tasklist /FI "IMAGENAME eq IEXPLORE.EXE" /NH] =~ /IEXPLORE/ then puts "browser IS running" else puts "no browsers running" end