Dmitry Gozman
9bd2aea130
feat(locator handler): address api review feedback ( #30554 )
...
- Remove `handler` argument from `removeLocatorHandler`.
- Rename `allowStayingVisible` into `noWaitAfter`.
- Improve logging related to locator handler.
- Remove experimental badges.
2024-04-25 14:00:02 -07:00
Dmitry Gozman
59689c9c97
feat(addLocatorHandler): various improvements ( #30494 )
...
- Automatically waiting for the overlay locator to be hidden, with
`allowStayingVisible` opt-out.
- `times: 1` option.
- `removeLocatorHandler(locator, handler)` method.
- Passing `locator` as first argument to `handler`.
Fixes #30471 . Fixes #30424 . Fixes #29779 .
2024-04-24 15:19:12 -07:00
Yury Semikhatsky
e2f7acea1e
docs: fix capitalization and alphabetic order in TestConfig ( #30523 )
2024-04-24 15:18:43 -07:00
Dmitry Gozman
8fc7723f22
fix(types): allow any return type from event handlers ( #30492 )
...
Closes #29353 .
2024-04-24 09:25:43 -07:00
Yury Semikhatsky
230a8437d3
feat(fetch): support FormData as multipart parameter ( #30489 )
...
Reference https://github.com/microsoft/playwright/issues/28070
2024-04-23 17:05:27 -07:00
Dmitry Gozman
02c0706896
docs: do not recommend waitForLoadState ( #30483 )
...
Instead, just perform an action and auto-waiting will handle it.
Closes #30236 .
2024-04-23 09:22:58 -07:00
Dmitry Gozman
4a275b8eca
feat: expect(locator).toHaveAccessibleDescription ( #30463 )
...
References #18332 .
2024-04-22 12:33:30 -07:00
Dmitry Gozman
eea1f9984f
feat: expect(locator).toHaveAccessibleName ( #30420 )
...
References #18332 .
2024-04-18 12:28:55 -07:00
Yury Semikhatsky
7ad255301f
docs: fix C# and python snippets ( #30232 )
2024-04-04 13:49:15 -07:00
Dmitry Gozman
88f2717e87
docs: hint that popup main request is accessible through BrowserContext ( #30249 )
...
Fixes #30229 .
2024-04-04 09:23:21 -07:00
Max Schmitt
010bc29a3c
chore: harden markdown link validation ( #30221 )
2024-04-03 17:51:32 +02:00
Козынченко Вячеслав
e58a33a0ae
feat(expect) - add ignoreCase option for toHaveURL ( #30192 )
...
feat(expect): add ignoreCase option for toHaveURL
Fixes #30057
2024-04-02 16:20:46 -07:00
Yury Semikhatsky
8056e5391f
docs: update context.backgroundPage event examples ( #30210 )
...
Fixes https://github.com/microsoft/playwright-java/issues/1530
2024-04-02 11:32:57 -07:00
Yury Semikhatsky
1602548c10
docs(java,csharp): add BrowserContext.backgroundPage(s) ( #30200 )
...
Refereence https://github.com/microsoft/playwright-java/issues/1530
2024-04-01 10:54:51 -07:00
Yury Semikhatsky
021c5c108c
chore: revert support of duplicate form data fields in multipart post data ( #30127 )
...
We want to adopt FormData API for the requests.
This is a revert of 4b3c596874156ac4c75c270466ab2c08e3d7132c and
a849ea97411714d50cda0a0d5c156decbdc2d814
Reference https://github.com/microsoft/playwright/issues/28070
2024-03-26 12:36:35 -07:00
Pavel Feldman
2de8a6b002
chore: move filter params into the clearCookies ( #30111 )
2024-03-26 08:12:26 -07:00
Yury Semikhatsky
a849ea9741
feat(fetch): multiple fields with the same name in post data ( #30104 )
...
Rerefence https://github.com/microsoft/playwright/issues/28070
2024-03-25 15:39:45 -07:00
Yury Semikhatsky
4b3c596874
docs(fetch): multiple fields with the same name in java and .net ( #30105 )
...
Reference https://github.com/microsoft/playwright/issues/28070
2024-03-25 13:49:09 -07:00
Max Schmitt
f5823786fd
docs: migrate to newer :::warning syntax ( #30089 )
...
- Migrate from `:::warning` to `:::danger[Warning]`.
- Migrate from `:::caution` to `:::warning`.
- `:::warning` and `:::caution` were the color same before.
- `:::caution` is deprecated and gets removed in v4 of Docusaurus
- Also migrate to the [newer title
syntax](3877c1254f/packages/docusaurus-utils/src/markdownUtils.ts (L86-L91)
)
---------
Signed-off-by: Max Schmitt <max@schmitt.mx>
Co-authored-by: Dmitry Gozman <dgozman@gmail.com>
2024-03-25 19:22:15 +01:00
Dmitry Gozman
95d649b406
feat: address api review feedback for 1.43 ( #30066 )
...
- Update docs for `trace: retain-on-first-failure`.
- Update docs for `devtools` option.
- Rename `Locator.enterFrame()` to `Locator.contentFrame()`.
- Rename `FrameLocator.exitFrame()` to `FrameLocator.owner()`.
2024-03-25 07:42:13 -07:00
Dmitry Gozman
9d40f619c4
feat: deprecate "devtools" launch option ( #30025 )
...
References #29899 .
2024-03-20 16:48:00 -07:00
Yury Semikhatsky
da2b099b5c
docs: note on locator handler trigger ( #30004 )
...
Fixes https://github.com/microsoft/playwright/issues/30003
2024-03-19 16:54:49 -07:00
Dmitry Gozman
70e6cdac57
feat: enterFrame/exitFrame ( #29992 )
...
This introduces `Locator.enterFrame()` and `FrameLocator.exitFrame()` to
convert between locator and frame locator.
Fixes #29336 .
2024-03-18 13:42:08 -07:00
Max Schmitt
5d0c61fa0c
docs: fix logger API usage ( #29961 )
2024-03-15 19:04:14 +01:00
Dmitry Gozman
78b8aed4bd
docs: mark addLocatorHandler as experimental ( #29909 )
2024-03-12 12:02:25 -07:00
Max Schmitt
d125ff4d39
docs: fix inconsistent .NET snippets ( #29831 )
2024-03-06 17:51:44 +01:00
PaulTriandafilov
8e48ee714d
feat(playwright-core): add remove cookies api ( #29698 )
2024-03-02 07:27:01 -08:00
Dmitry Gozman
ba3d887660
docs: improve addLocatorHandler docs ( #29770 )
2024-03-01 11:19:37 -08:00
Max Schmitt
adccd39b01
docs(dotnet): type specific addLocatorHandler handler ( #29586 )
2024-02-22 23:53:09 +01:00
Sylvain Finot
b11b118e02
feat(chromium): expose parameters to generate outline / tagged PDF ( #29494 )
...
Signed-off-by: Max Schmitt <max@schmitt.mx>
Co-authored-by: Max Schmitt <max@schmitt.mx>
2024-02-15 17:28:04 +01:00
Yury Semikhatsky
edc1c13f31
docs: locator handler type should be Runnable in java ( #29503 )
2024-02-14 19:21:28 -08:00
Max Schmitt
ce5d970929
docs: make sure to await route.* methods ( #29489 )
...
Fixes https://github.com/microsoft/playwright/issues/29471
Follow-up on https://github.com/microsoft/playwright/pull/28745 .
2024-02-14 17:57:12 +01:00
Max Schmitt
30557ed28c
fix(electron): stalling on delayed process close ( #29431 )
2024-02-13 10:25:46 +01:00
Dmitry Gozman
f0244b8a76
chore: rename handleLocator to addLocatorHandler ( #29443 )
2024-02-09 15:18:50 -08:00
Dmitry Gozman
61955e55b1
fix(handleLocator): address API review feedback ( #29412 )
...
- docs improvements;
- `force: true` ignores `handleLocator`;
- wrapping an internal call;
- more test cases;
- `pw:api` log entries for this API.
2024-02-08 07:39:05 -08:00
Max Schmitt
47f8ba2a04
feat(electron): expose ElectronApplication console events ( #29322 )
...
Fixes https://github.com/microsoft/playwright/issues/5905
2024-02-05 21:30:54 +01:00
Bruno Mańczak
3e2d5b2800
docs: add an example of how to use "+" key as part of a shortcut ( #29221 )
2024-01-29 14:57:10 -08:00
Max Schmitt
d89ed88679
docs: do not recommend PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD anymore ( #29121 )
2024-01-23 09:12:47 -08:00
Dmitry Gozman
f3fac6f4e9
feat: page.handleLocator
that closes any interstitial pages/dialogs ( #29029 )
2024-01-19 12:35:00 -08:00
Dmitry Gozman
90665ef056
docs: update auto-waiting doc ( #28960 )
...
- Replace action names with links to `Locator.click`.
- Remove "Attached" check in favor of "locator resolves to a single
element".
- Replace getter methods in assertion section with auto-retriying
assertions.
- Add missing actions.
---
<img width="837" alt="Screenshot 2024-01-11 at 1 02 34 PM"
src="https://github.com/microsoft/playwright/assets/9881434/1946678d-6a7e-45cf-a299-2f18cb3fb5a5 ">
2024-01-12 09:33:42 -08:00
Max Schmitt
c5097a500d
docs: add java/csharp code snippets for FormData ( #28951 )
...
Fixes https://github.com/microsoft/playwright/issues/28811
---------
Signed-off-by: Max Schmitt <max@schmitt.mx>
Co-authored-by: Dmitry Gozman <dgozman@gmail.com>
2024-01-11 18:36:05 +01:00
geke-scottlogic
6bd61cd8c6
docs: Improve clarity on toHaveText and toContainText assertions ( #28623 )
...
This closes https://github.com/microsoft/playwright/issues/28058 .
2024-01-05 09:20:50 -08:00
Yury Semikhatsky
207585ef63
docs: clarify tracing name parameter semantics ( #28759 )
...
Fixes https://github.com/microsoft/playwright/issues/28751
2023-12-21 15:24:54 -08:00
Yury Semikhatsky
db703a98ea
docs: no floating promises in route handlers ( #28745 )
...
Fixes https://github.com/microsoft/playwright/issues/28737
2023-12-21 09:57:35 -08:00
Yury Semikhatsky
86ef7393ba
docs: remove unrouteAll.behavior option from java ( #28675 )
...
This option does not make sense in the synchronous API where all active
routes would be on the same call stack any way.
Reference https://github.com/microsoft/playwright/issues/23781
2023-12-15 12:09:26 -08:00
Yury Semikhatsky
d89837c58e
chore: revert noWaitForFinish option, page.close does not wait for ro… ( #28658 )
...
…ute handlers
Reference https://github.com/microsoft/playwright/issues/23781
2023-12-15 09:00:12 -08:00
Max Schmitt
256b287649
docs: note that custom args are on your own risk ( #28656 )
...
https://github.com/microsoft/playwright/issues/28537
2023-12-14 14:37:31 -08:00
Yury Semikhatsky
f28ceffa37
feat: page.unrouteAll and context.unrouteAll ( #28635 )
...
Reference https://github.com/microsoft/playwright/issues/23781
2023-12-14 13:48:17 -08:00
Pavel Feldman
d242ff67ef
chore: follow up to the stylePath review ( #28636 )
2023-12-14 08:19:24 -08:00
Max Schmitt
e8c8852c00
chore: discourage methods on ElementHandle ( #28637 )
...
Mirrors the deprecations from page.* over to ElementHandle.
2023-12-13 20:06:01 -08:00