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
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