Open QinghuaGit opened 7 years ago
hi @QinghuaGit, your code looks good. I guess it has something to do with the different processes (vscode, node, chrome). When you end a process in the terminal, all child processes are automatically terminated.
I'm afraid I do not know how I can change the behavior at the moment... :(
Hi,
I'm trying to run following code which copied from Getting Started with Headless Chrome
When I hit F9 after F8, the exit handler won't be called. But if I run the code in terminal then press Ctrl + C to quit, the handler would be called.
I'm new to NodeJS but my code seems good to me :) Please let me know if it is my fault. Thank you.