412 Commits

Author SHA1 Message Date
Andrey Lushnikov
6f87955243
feat: introduce disableAnimations option for screenshots (#11870)
This option stops all kinds of CSS animations while doing screenshot:
- CSS animations
- CSS transitions
- Web Animations

Animations get different treatment depending on animation duration:
- finite animations are fast-forwarded to its end, issuing the
  `transitionend` event.
- Infinite animations are resetted to its beginning, and then
  resumed after the screenshot.

References #9938, fixes #11912
2022-02-09 12:52:11 -08:00
Pavel Feldman
3a898c285e docs: fix python snippet 2022-02-08 08:02:28 -08:00
Aarni Koskela
6881db6817
docs: fix typo in Python APIRequestContext example (#11861)
`playwright.chromium` should be `p.chromium`, etc.
2022-02-04 16:36:30 +01:00
Dmitry Gozman
f587a43932
feat(locator): "has" option (#11411)
This introduces `locator('div', { has: locator })` syntax that matches elements containing other elements.
Can be used together with `hasText`.

Internally, has selector engine takes an inner selector escaped with double-quotes:
`div >> has="li >> span >> text=Foo" >> span`.
2022-02-02 16:55:50 -08:00
Yury Semikhatsky
e7bd62f202
docs(electron): minimal version (#11792) 2022-02-01 14:45:30 -08:00
Caio Agiani
b6b60decdf
fix: typos (#11789) 2022-02-01 11:09:41 -08:00
Yury Semikhatsky
129d9d3643
docs(tracing): clarify capture semantics (#11756) 2022-01-31 11:44:10 -08:00
Leonardo Henrique Tsuda
7dc2dce709
fix response status assertion on python example (#11723) 2022-01-28 11:50:14 -08:00
Meir Blachman
5cbedf8823
docs: fix frame locator docs for python sync (#11689) 2022-01-28 16:41:13 +01:00
Yury Semikhatsky
b436fbbbf4
docs(java): route.fulfill with APIResponse (#11711) 2022-01-27 15:43:38 -08:00
Dmitry Gozman
687a16b848
feat(locator): introduce locator.page() getter (#11630) 2022-01-26 07:58:58 -08:00
Max Schmitt
a13f71d328
docs(python): enable Python response assertions (#11609) 2022-01-25 18:53:49 +01:00
Andrey Lushnikov
82c8baf9f6
docs: add Java 1.18 release notes (#11477) 2022-01-19 09:25:52 -08:00
Max Schmitt
4fa7aa0ff7
docs(python): enable tracing sources collection (#11453) 2022-01-18 13:05:59 +01:00
Max Schmitt
60e7caf91c
docs(dotnet): enable collecting tracing sources (#11410) 2022-01-16 17:57:01 +01:00
Dmitry Gozman
73fed66896
docs: add comments to Promise.all snippets with explanation (#11379)
Drive-by: more locators.
2022-01-13 10:38:22 -08:00
Andrey Lushnikov
2a0930c7a4
docs: clarification about trailing slash in docs (#11326)
Fixes #10557
2022-01-11 07:50:58 -08:00
Pavel Feldman
303d49e8de
docs: add a toHaveClass hint (#11249) 2022-01-07 09:13:46 -08:00
Yury Semikhatsky
670d6c3e27
docs: range boundary for [200..299] (#11232) 2022-01-06 15:46:08 -08:00
Yury Semikhatsky
d629fe57ab
docs: make toBeOK async, expose in java (#11227) 2022-01-06 14:40:44 -08:00
Max Schmitt
d49bf00183
docs: enable BrowserType.connect in .NET (#10985) 2022-01-06 15:26:33 -05:00
Yury Semikhatsky
1dd8325c9a
docs(java): add API for providing source locations (#10998) 2021-12-17 10:50:47 -08:00
Yury Semikhatsky
0eaa19d5e7
docs(expect): APIResponse assertions (#10957) 2021-12-16 11:27:30 -08:00
Pavel Feldman
04e82ce71c
feat(api): make withText an option (#10922) 2021-12-14 15:37:31 -08:00
Max Schmitt
e775494991
docs: enable BrowserType.connectOverCDP in .NET (#10903) 2021-12-13 18:41:15 -08:00
Max Schmitt
dd41cb54a8
docs: Assert.Equal -> Assert.AreEqual (#10902) 2021-12-13 18:41:06 -08:00
Yury Semikhatsky
4621f61c7d
docs: converting Locator to FrameLocator (#10839) 2021-12-09 15:21:04 -08:00
Pavel Feldman
04aa38a663
docs: nit fixes (#10805) 2021-12-08 12:49:50 -08:00
Pavel Feldman
917924d279
docs: extract locators doc (#10795) 2021-12-08 09:54:01 -08:00
Pavel Feldman
7765131a14
feat(acceptDownload): revert acceptDownload (#10709) 2021-12-06 09:25:24 -08:00
Pavel Feldman
f583f1604c
feat(locator.withText): allow narrowing locators to those with text (#10688) 2021-12-03 09:27:06 -08:00
Pavel Feldman
3daf008067
docs(locator): add section on working with the lists (#10651) 2021-12-02 20:29:38 -08:00
Pavel Feldman
31e0a63fcd
feat(toBeChecked): allow passing checked: false (#10665) 2021-12-02 10:31:26 -08:00
Max Schmitt
d08dfdf532
docs(python): add assertion examples (#10532) 2021-11-30 20:04:44 +01:00
Max Schmitt
af28a779be
docs: migrate JS assertions over to Java/Python assertions (#10431) 2021-11-24 21:58:35 +01:00
Max Schmitt
af4a1c2d26
docs(python): add request API examples (#10512) 2021-11-24 21:55:03 +01:00
Joel Einbinder
d70e37de80
feat: locator.dragTo (#10287) 2021-11-22 20:27:26 +01:00
Max Schmitt
eaee864b2c
docs: python assertion type fixes (#10465) 2021-11-22 18:39:10 +01:00
Yury Semikhatsky
9fed8a9344
docs(api): redo request API for java (#10449) 2021-11-19 16:40:35 -08:00
Max Schmitt
0781d0303b
docs(python): enable web-first assertions (#10390) 2021-11-18 00:46:30 +01:00
Yury Semikhatsky
565ac910e7
docs(api): expose request API in java (#10331) 2021-11-15 14:54:07 -08:00
browse
5d4ec1d512
docs(python): fix incorrect snippet syntax (#10314) 2021-11-15 11:20:46 +01:00
Pavel Feldman
1e38ec5fa4
docs(element-handle): discourage the element handle use (#10220) 2021-11-10 11:30:25 -08:00
Pavel Feldman
4e90eb9406
api(frame-locator): allow nth, first, last (#10195) 2021-11-09 14:14:20 -08:00
Yury Semikhatsky
c30447216d
docs(fetch): typo in comment (#10160) 2021-11-09 14:00:58 -08:00
Yury Semikhatsky
031ceb3553
docs(java): assertion examples (#10194) 2021-11-09 12:44:02 -08:00
Max Schmitt
1a7fb912e4
docs(python): enable request API (#10179) 2021-11-09 14:04:34 +01:00
Yury Semikhatsky
ac25a67140
docs(java): assertion docs fixes (#10144) 2021-11-08 11:31:11 -08:00
Pavel Feldman
4553d76fce
api(frame-locator): introduce frame locators (#10102) 2021-11-08 09:58:24 -08:00
Yury Semikhatsky
bce9a8187d
fix(fetch): post data for delete request (#10019) 2021-11-03 13:26:15 -07:00