dalekjs / dalek-browser-chrome

[unmaintained] Chrome Browser bindings for DalekJS
MIT License
15 stars 9 forks source link

Dalek doesnt close all chrome browsers correctly. #18

Closed flogball00 closed 10 years ago

flogball00 commented 10 years ago

Not sure if this has a fix but if i launch a second chrome browser with an .execute(), the teardown only closes the original window. Is there a way to close all windows related to the test?

asciidisco commented 10 years ago

Dalek only closes windows it opened by itself. You can take a look at the index.js file & how Dalek handles the closing of the window there. In short: It checks the PID of the process, keeps it along with the running session & then simply kills the process with that PID.

I do not see a way to handle windows opened other than extending the API of Dalek itself.