Hi,
Whenever JstestDriver completes a test run on my windows box, the
browser window (tab) does not close after a test run. I start the
JsTestDriver server from within rake script, using -
output = IO.popen("java -jar JsTestDriver.jar --port 9876 --browser C:\
\Progra~2\\Mozill~1\\firefox.exe --runnerMode DEBUG ") do |pipe|
sleep(SERVER_START_UP_WAIT_TIME)
IO.popen("java -jar JsTestDriver.jar --tests all --server
http://localhost:9876 --testOutPut test--runnerMode DEBUG") do |pipe2|
sleep(SERVER_START_UP_WAIT_TIME)
puts pipe2.pid
pipe2.close
Process.kill("KILL", pipe.pid) #Kill the parent process
pipe.close
end
end
However, this leaves the captured browser window open. Is there any
way to close this window via a command? without having to write a
script to do the same for windows and unix?
Running JsTestDriver directly from command line leaves the browser tab
open.
Thank you!
Gavin