Catch the closing event of the chrome browser using chrome driver Catch the closing event of the chrome browser using chrome driver google-chrome google-chrome

Catch the closing event of the chrome browser using chrome driver


Not sure I quite understand the question, but can you use the window.onbeforeunload approach?

e.g. See W3Schools


$(document).ready(function () {    window.onbeforeunload = function () {        //your code here    };});