Commit graph

4279 commits

Author SHA1 Message Date
Dmitry Gozman 6b3f4cd12b
chore: calculate video size in a single place (#5942) 2021-03-24 10:56:20 -07:00
Dmitry Gozman 8e97607389
fix(viedo): do not stall video in popups (#5941)
There are two problems, exposed by existing tests:

- We do not send Page.startScreeencast before Runtime.runIfWaitingForDebugger
  because we launch video recorder in between. This stalls when the page is busy
  immediately after resuming, e.g. with alert().
  Fixed by starting video recorder in advance.

- We wait for the first frame that may not come - for example, context-wide interception
  is blocking essential resource and first frame.
  Fixed by only waiting for the first frame before reporting the video, not the page.
2021-03-24 09:36:46 -07:00
Darío Kondratiuk 24ee49b958
chore(dotnet): improve goto name in csharp (#5917) 2021-03-24 15:31:30 +01:00
Dmitry Gozman 2cf4caa4cf
chore: implement mixins in protocol.yml (#5932) 2021-03-24 06:37:10 -07:00
Andrey Lushnikov 7678112242
tests: do not run video tests with Chrome Stable on Linux (#5931) 2021-03-23 22:18:49 -07:00
Pavel Feldman cc265fe1eb
docs(websocket): add web socket examples (#5927) 2021-03-23 17:17:59 -07:00
Pavel Feldman 1b802332d2
infra: remove shards from mac builds to remove 6 bots (#5928) 2021-03-23 14:23:23 -07:00
Yury Semikhatsky 7d7e5ede84
browser(webkit): roll back to safari-612.1.7-branch first commit (#5920) 2021-03-23 13:45:42 -07:00
Andrey Lushnikov 2016fdbc52
chore: cut v1.10.0 (#5925) 2021-03-23 13:35:03 -07:00
Pavel Feldman 543582b4ca
chore: expose channel name literals for types (#5922) 2021-03-23 13:21:03 -07:00
Pavel Feldman f70eaf4ff3
docs(android): android doc nits (#5924) 2021-03-23 13:20:41 -07:00
Yury Semikhatsky 8f1d03f846
docs(options): clarify recordHarPath and recordVideoDir behavior (#5923) 2021-03-23 13:13:15 -07:00
Pavel Feldman ca35da0a33
test(android): run selected page tests on android (3) (#5910) 2021-03-23 10:07:15 -07:00
Anže Vodovnik 3a27bdd3e6
chore(dotnet): improve name generation for objects (#5860) 2021-03-23 10:44:50 +01:00
Pavel Feldman 9f1b2f68bf
test(resize): add a screenshot resize test (#5907) 2021-03-22 20:44:26 -07:00
Andrey Lushnikov ec6453d1b2
fix: installer compilation (#5908)
For some reason typescript can't find electron types when using
nested tsconfig - workaround the bug.

Drive-by: surface installer compilation problems.
2021-03-22 17:39:03 -07:00
Andrey Lushnikov 172de4082a
browser(chromium): build current dev chromium (#5911) 2021-03-22 17:38:28 -07:00
Yury Semikhatsky b74af2269f
browser(webkit): fix mac compilation after latest roll (#5909) 2021-03-22 14:34:58 -07:00
Pavel Feldman 14ccc80cb3
fix(android): bundle android driver in all settings (#5883) 2021-03-22 14:25:40 -07:00
Pavel Feldman cac5aeb6da docs(browser): wording nits 2021-03-22 13:00:19 -07:00
rob salmond 1bcbb15299
set system default python3 to python3.8 (#5892) 2021-03-22 12:29:54 -07:00
Andrey Lushnikov 2064d27dc6
fix(installer): retain browsers installed via Playwrigth CLI (#5904)
Browser registry is responsible for 3 things:
1. Remove downloaded browsers if there are no packages that refer to them
2. Install default browsers needed for the current package
3. Install browsers on-demand when used through Playwright CLI

Currently, registry relies on a single "download" field in `browsers.json`
to carry both (1) and (2). However, browsers in (3) are marked as
`download: false` so that they aren't installed automatically in (2), so
auto-remove procedure in (1) removes them on subsequent installation.

One possible approach to fix this would be modifying package's `browsers.json` to
change `download: false` to `true` when browsers are installed with
Playwright CLI. This approach was explored here:
bc04a51800

We decided against this since we have a history of issues related to
package modifications after NPM installation. This breaks all
sorts of yarn/npm caching mechanisms.

Instead, this patch is a two-step refactor:
- remove the "download" field in `browsers.json`. Now, all registries
(including old ones from previously-released versions) will retain any
browsers that are mentioned in the `browsers.json`.
- add a new flag "installByDefault", that is **only used** for default
installation.

With this change, the registry tasks are done like this:
- (1) auto-removal: if browser has a back reference, it is retained,
otherwise it is removed from registry
- (2) default installation: use only `installByDefault` to carry default installations
- (3) CLI installation: simply installs browsers. Since we retain
everythings that's referenced in (1), browsers aren't removed.

Fixes #5902
2021-03-22 11:43:29 -07:00
Yury Semikhatsky 6dd4d756dc
browser(webkit): roll to 03-22-21 (#5903) 2021-03-22 11:22:56 -07:00
Yury Semikhatsky 67c29e8155
chore: add missing await to floating promises (#5813) 2021-03-22 09:59:39 -07:00
Pavel Feldman be9fa743ca docs(intro): remove stray wait from sync snippet 2021-03-21 09:52:26 -07:00
Yury Semikhatsky 237251924d
docs: add event listener guide (#5881) 2021-03-19 12:44:03 -07:00
Anže Vodovnik fbb4626442
chore(dotnet): support for optional properties in generated objects (#5889) 2021-03-19 17:19:42 +01:00
Pavel Feldman 1f1c8b74cd
test(android): run selected page tests on android (2) (#5882) 2021-03-18 21:11:58 -07:00
Pavel Feldman ad5c028f37
test(android): run selected page tests on android (#5879) 2021-03-18 19:31:54 -07:00
Michael cbebf64f07
docs: fix circleci invalid yaml (#5880) 2021-03-18 18:35:48 -07:00
Pavel Feldman 16bf462e4c
test: organize tests to not depend on context (#5878) 2021-03-18 16:20:35 -07:00
Pavel Feldman 5c753b763f
docs: add the browsers section (#5876) 2021-03-18 15:35:55 -07:00
Pavel Feldman c68bd31053
test: make init script test strict again (#5877) 2021-03-18 15:18:25 -07:00
Pavel Feldman c4410d3f4d Revert "chore(docs): add support for language specific notes (#5810)"
This bubbled up in Python comments.
2021-03-18 13:50:17 -07:00
Pavel Feldman 516f13e7ee Revert "chore(docs): reference the available constants for csharp (#5785)"
This bubbled up in Python comment.
2021-03-18 13:49:35 -07:00
Andrey Lushnikov c435ff3515
feat(firefox): roll Firefox to r1238 (#5873) 2021-03-18 12:16:13 -07:00
Andrey Lushnikov 9a50304dc1
fix: work-around electron's broken event loop (#5867)
Since `setImmediate` doesn't create a new task in Electron,
we have to fallback to `setTimeout` instead.

See https://github.com/electron/electron/issues/28261 for details.

Fixes #5228
2021-03-18 09:29:37 -07:00
Anže Vodovnik dfb1c99ad1
chore(docs): reference the available constants for csharp (#5785) 2021-03-18 16:34:13 +01:00
Pavel Feldman d53cea7029
fix(pageOrError): throw in launchPersistentContext if context page has errors (#5868) 2021-03-18 08:14:57 -07:00
Andrey Lushnikov bb21faf450
fix: disable firefox's webrender on Darwin (#5870)
References #5721
2021-03-18 00:23:23 -07:00
Andrey Lushnikov 9bd35d8271
test: disable shortcuts test on Firefox darwin (#5869)
References #5721
2021-03-18 00:22:54 -07:00
Darío Kondratiuk de16d17726
docs(dotnet): move options arguments last (#5856) 2021-03-17 21:17:45 -07:00
Pavel Feldman 2367039a2c
chore(stable): throw user-friendly message when ffmpeg is missing (#5865) 2021-03-17 19:19:44 -07:00
Pavel Feldman 141583c79f
infra(chrome_stable): add more bots (#5863) 2021-03-17 17:24:01 -07:00
Pavel Feldman 84efdfcbc9
chore(autowait): auto-wait for top level navigations only (#5861) 2021-03-17 14:47:51 -07:00
Pavel Feldman 5ae731a3fb
chore(evaluate): respect signals when evaluating on handle (#5847) 2021-03-17 12:03:21 -07:00
Pavel Feldman 7011e5737a
chore(evaluate): explicitly annotate methods that wait for signals (#5859) 2021-03-17 10:47:07 -07:00
Anže Vodovnik c55000812b
docs(dotnet): adds option parameters for csharp on element handle (#5823) 2021-03-17 18:28:40 +01:00
Andrey Lushnikov ae460f01fc
devops: start downloading webkit fork on Mac 10.14 (#5837)
References #5833
2021-03-17 09:34:09 -07:00
Anže Vodovnik 693e5699ac
chore(docs): add support for language specific notes (#5810) 2021-03-17 15:20:37 +01:00