playwright/src/server
Andrey Lushnikov e09132527d
fix: a pretty error when browser executable is not found (#3220)
Make sure executable exists before launching it. If it doesn't and
we were launched without custom executable path, print a helpful
instruction to run `npm i playwright` and get browsers downloaded.

Note: there's already a test that makes sure bad executable paths
are treated fairly: 9132d23b2b/test/launcher.jest.js (L54-L59)

This doesn't test missing default browser installation which I think is
fine.

Fixes #3161
2020-07-29 23:16:24 -07:00
..
browserServer.ts chore(websocket): extract common socket part (#2506) 2020-06-10 16:33:27 -07:00
browserType.ts fix: a pretty error when browser executable is not found (#3220) 2020-07-29 23:16:24 -07:00
chromium.ts fix: re-write Chromium startup error with clear instructions (#3070) 2020-07-22 10:57:58 -07:00
electron.ts fix(electron): emit close events in the correct order (#3111) 2020-07-23 11:02:43 -07:00
electronLoader.ts feat(electron): experimental electron support (#2166) 2020-05-11 18:00:33 -07:00
firefox.ts feat(rpc): support firefox user prefs (#3093) 2020-07-22 17:20:00 -07:00
pipeTransport.ts chore(logs): rework logs for simplicity (#2592) 2020-06-16 17:11:19 -07:00
playwright.ts api: export all browsers from every package (#3128) 2020-07-24 16:36:00 -07:00
processLauncher.ts feat(rpc): gracefully close browsers in server process on disconnect (#3005) 2020-07-17 16:14:23 -07:00
validateDependencies.ts fix: add missing libgles2 package to launch doctor (#3209) 2020-07-29 10:40:33 -07:00
webkit.ts fix: re-write Chromium startup error with clear instructions (#3070) 2020-07-22 10:57:58 -07:00
webSocketServer.ts chore(logs): rework logs for simplicity (#2592) 2020-06-16 17:11:19 -07:00