@@ -374,12 +374,18 @@ Creates a new browser context. It won't share cookies/cache with other browser c
374
374
### class: BrowserApp
375
375
376
376
<!-- GEN:toc -->
377
+ - [ event: 'close'] ( #event-close )
377
378
- [ browserApp.close()] ( #browserappclose )
378
379
- [ browserApp.connectOptions()] ( #browserappconnectoptions )
380
+ - [ browserApp.kill()] ( #browserappkill )
379
381
- [ browserApp.process()] ( #browserappprocess )
380
382
- [ browserApp.wsEndpoint()] ( #browserappwsendpoint )
381
383
<!-- GEN:stop -->
382
384
385
+ #### event: 'close'
386
+
387
+ Emitted when the browser app closes.
388
+
383
389
#### browserApp.close()
384
390
- returns: <[ Promise] >
385
391
@@ -393,6 +399,10 @@ Closes the browser gracefully and makes sure the process is terminated.
393
399
394
400
This options object can be passed to [ browserType.connect(options)] ( #browsertypeconnectoptions ) to establish connection to the browser.
395
401
402
+ #### browserApp.kill()
403
+
404
+ Kills the browser process.
405
+
396
406
#### browserApp.process()
397
407
- returns: <?[ ChildProcess] > Spawned browser application process.
398
408
@@ -1785,7 +1795,7 @@ page.removeListener('request', logRequest);
1785
1795
```
1786
1796
1787
1797
<!-- GEN:toc -->
1788
- - [ event: 'close'] ( #event-close )
1798
+ - [ event: 'close'] ( #event-close-1 )
1789
1799
- [ event: 'console'] ( #event-console )
1790
1800
- [ event: 'dialog'] ( #event-dialog )
1791
1801
- [ event: 'domcontentloaded'] ( #event-domcontentloaded )
@@ -3183,7 +3193,7 @@ Contains the URL of the response.
3183
3193
The [ WebSocket] class represents websocket connections in the page.
3184
3194
3185
3195
<!-- GEN:toc -->
3186
- - [ event: 'close'] ( #event-close-1 )
3196
+ - [ event: 'close'] ( #event-close-2 )
3187
3197
- [ event: 'error'] ( #event-error )
3188
3198
- [ event: 'messageReceived'] ( #event-messagereceived )
3189
3199
- [ event: 'messageSent'] ( #event-messagesent )
0 commit comments