playwright/src/protocol
Dmitry Gozman fff1f3d45c
chore: simplify remote connection protocol (#6164)
This changes the root object from RemoteBrowser to Playwright,
similar to local driver connection. This way, any remote connection
gets a Playwright object.

This also starts reusing PlaywrightServer class, and introduces
`cli run-server` hidden command that runs ws server on the
specified port.

Previous structure:
```
RemoteBrowser
  - browser (using ConnectedBrowser for remote-specific behavior)
  - selectors (special instance for this remote connection)
```

New structure:
```
Playwright
  - ...
  - selectors (special instance for this remote connection)
  - preLaunchedBrowser (using ConnectedBrowser for remote-specific behavior)
```
2021-04-12 11:14:54 -07:00
..
channels.ts chore: simplify remote connection protocol (#6164) 2021-04-12 11:14:54 -07:00
protocol.yml chore: simplify remote connection protocol (#6164) 2021-04-12 11:14:54 -07:00
serializers.ts chore: move shared utilities to src/utils (#3575) 2020-08-22 07:07:13 -07:00
transport.ts fix(driver): stop sending protocol messages after disconnect (#4688) 2020-12-16 14:21:59 -08:00
validator.ts fix: finish all artifacts when browser exits (#6151) 2021-04-08 18:56:09 -07:00
validatorPrimitives.ts chore: revert isDevMode into isUnderTest (#3785) 2020-09-06 21:36:22 -07:00