Matt Marsh
d048ee4f5b
docs(cli): correct CLI grep documentation ( #30940 )
...
The documentation for command line usage of `--grep` did not provide the
correct string used for comparisons. This has now been fixed to include
the project name.
Fixes #30895
2024-05-22 16:05:20 -07:00
Olaf Alders
5b00ce1594
docs: fix typo in ConsoleMessage class ( #30857 )
2024-05-22 13:31:14 +02:00
오소현
165ecac5df
feat(test): add URL field to annotations for hyperlink display ( #30665 )
2024-05-21 12:46:38 -07:00
Debbie O'Brien
47185b743b
docs: add last failed to running tests ( #30730 )
2024-05-21 12:37:39 -07:00
Cornelius Roemer
822cba2e2b
docs(actionability.md): fix grammar ( #30756 )
2024-05-21 12:35:17 -07:00
Matt Marsh
68abd36464
docs: add detail on dot reporter output ( #30939 )
...
docs: detail on how to interpret dot reporter output added.
Fixes #30908
2024-05-21 12:06:05 -07:00
Dmitry Gozman
6290af3a08
feat(reporters): align and document environment variables ( #30912 )
...
- Documents `PLAYWRIGHT_FORCE_TTY` and `FORCE_COLOR` across terminal
reporters.
- New `PLAYWRIGHT_LIST_PRINT_STEPS`. Removes undocumented test-only
`PW_TEST_DEBUG_REPORTERS_PRINT_STEPS`.
- Replaces `PLAYWRIGHT_HTML_REPORT` with `PLAYWRIGHT_HTML_OUTPUT_DIR`
and `PW_TEST_HTML_REPORT_OPEN` with `PLAYWRIGHT_HTML_OPEN` for
consistency, supports older versions for backwards compatibility.
- New `PLAYWRIGHT_HTML_HOST`, `PLAYWRIGHT_HTML_PORT` and
`PLAYWRIGHT_HTML_ATTACHMENTS_BASE_URL`.
- New `PLAYWRIGHT_JUNIT_STRIP_ANSI` and
`PLAYWRIGHT_JUNIT_INCLUDE_PROJECT_IN_TEST_NAME`.
- Removes `PW_HTML_REPORT` that was set for unknown reason.
2024-05-21 10:46:52 -07:00
Atmaram Naik
7fd3539ebd
docs(intro): adds all three package manager commands ( #30884 )
2024-05-20 16:14:35 +02:00
Max Schmitt
9188ff7917
docs: add release-notes for language ports ( #30868 )
2024-05-17 23:18:16 +02:00
Joe-Hendley
6ae5cd3824
feat: implement flag to fail flaky tests ( #30618 )
...
Implements feature requested in
https://github.com/microsoft/playwright/issues/30457
The test runner treats flaky tests as failures when the flag is enabled,
but still reports flaky tests as flaky in the reporting interface. It
feels like something worth discussing as this behaviour makes sense to
me, but looked a bit odd to @BJSS-russell-pollock when I ran this past
him.
Closes #30457 .
2024-05-15 09:10:10 -07:00
Max Schmitt
79d2fcfc20
docs(python): fix browser.context snippet ( #30759 )
...
Signed-off-by: Max Schmitt <max@schmitt.mx>
2024-05-14 15:36:17 +01:00
Dmitry Gozman
776b04e5ea
feat: APIRequestContext dispose reason ( #30765 )
...
Similarly to page.close, we pass test-runner specific reason to
facilitate better error messages.
```
1) a.test.ts:10:11 › test
Error: apiRequestContext.fetch: Fixture { request } from beforeAll cannot be reused in a test.
- Recommended fix: use a separate { request } in the test.
- Alternatively, manually create APIRequestContext in beforeAll and dispose it in afterAll.
See https://playwright.dev/docs/api-testing#sending-api-requests-from-ui-tests for more details.
9 |
10 | test('test', async () => {
> 11 | await context.fetch('http://example.com ');
| ^
12 | });
13 |
```
Closes #29260 .
2024-05-13 18:51:30 -07:00
Max Schmitt
f2441eb4b5
docs(dotnet): roll fixes ( #30771 )
2024-05-13 15:56:14 -07:00
Yury Semikhatsky
e728e90944
docs: waitForResponse method predicate example ( #30739 )
...
Fixes https://github.com/microsoft/playwright/issues/30731
2024-05-10 09:22:59 -07:00
Debbie O'Brien
10da0801e3
docs(dotnet): improve trace viewer ( #30716 )
2024-05-09 20:34:01 +02:00
Dmitry Gozman
a5d384c1f6
docs: add section explaining scrolling ( #30719 )
...
Fixes #30643 .
2024-05-08 21:04:05 -07:00
Debbie O'Brien
54cf6559b4
docs: fix intro whats next codgen link ( #30714 )
2024-05-08 22:55:44 +02:00
Debbie O'Brien
4f84ae31bd
docs(dotnet): improve trace viewer intro ( #30671 )
2024-05-08 20:01:47 +01:00
Viktor Szépe
150cbcbdf3
chore: fix typos ( #30645 )
2024-05-08 19:40:03 +01:00
Sander
4b5ecd2d79
docs(ct): remove router faq ( #30663 )
2024-05-08 18:40:12 +01:00
Christophe Chauvot
ddeec35450
docs(release-notes): Fixed typo in 1.44 js notes ( #30647 )
2024-05-08 17:41:53 +01:00
Max Schmitt
5babb37f19
docs(python): roll fixes ( #30708 )
2024-05-08 08:44:28 -07:00
Michael Render
81e907f4c1
docs(dotnet): fix isMobile in snippet ( #30699 )
2024-05-07 22:34:55 +01:00
ggorlen
2d7b1480b2
docs(reporters): wrap reporter in array, fixing typo in docs ( #30686 )
2024-05-07 11:16:21 +00:00
Debbie O'Brien
5d21e3729c
docs: fix example for accessible description ( #30672 )
2024-05-06 10:11:45 -07:00
Max Schmitt
d9d760705a
docs: fix broken links which broke build ( #30651 )
...
Fixes https://github.com/microsoft/playwright.dev/pull/1370
Fixes https://github.com/microsoft/playwright/pull/30648
2024-05-03 16:35:18 +00:00
Debbie O'Brien
c086b09f7e
docs: add new video on generating tests ( #30631 )
2024-05-03 16:21:51 +02:00
Yury Semikhatsky
d5b387159a
feat(fetch): sendImmediately ( #30627 )
...
Fixes https://github.com/microsoft/playwright/issues/30534
2024-05-02 16:30:12 -07:00
Debbie O'Brien
bf11c95d58
docs: improve dotnet getting started ( #30594 )
2024-05-02 12:06:39 +02:00
Philipp Daun
702bafdd88
docs: add third-party GitHub pull request reporter ( #30454 )
...
Add a new third-party reporter: [Playwright Report Comment
Action](https://github.com/marketplace/actions/playwright-report-comment ).
A GitHub action that comments report summaries on pull requests.
Screenshots visible in the action readme and below.


Signed-off-by: Philipp Daun <post@philippdaun.net>
2024-05-01 13:28:23 -07:00
Kawahara Shotaro
4e2ea2280c
docs: Add pnpm as an install option for Playwright ( #30601 )
...
This pull request adds pnpm as an install option for Playwright.
Previously, only npm and yarn were listed as installation options.
2024-05-01 13:01:33 -07:00
Yury Semikhatsky
3b7c4fac22
chore: add common env vars for junit and json reporters ( #30611 )
2024-05-01 10:16:49 -07:00
Dmitry Gozman
c3d8b22198
docs: mention that globalSetup does not respect config options ( #30609 )
...
Closes #30605 .
2024-04-30 09:01:44 -07:00
Yury Semikhatsky
fa7d4e5143
docs: releae notes 1.44 for js ( #30596 )
2024-04-29 16:48:40 -07:00
Yury Semikhatsky
b9f70f4ac4
docs(junit): document existing options and env ( #30595 )
2024-04-29 11:29:15 -07:00
Pavel Feldman
96f3d19819
feat(ctrl_or_meta): add a universal ctrl-meta modifier ( #30572 )
...
Fixes https://github.com/microsoft/playwright/issues/12168
2024-04-29 08:15:12 -07:00
Harsh Gupta
ebafb95054
docs(python): fix CDPSession documentation example ( #30584 )
2024-04-29 10:58:59 +00:00
Yury Semikhatsky
1f63cbff08
docs: toHaveUrl.ignoreCase in languages ( #30573 )
2024-04-26 15:02:51 -07:00
Yury Semikhatsky
3643fd456b
feat: outputFile option and PLAYWRIGHT_BLOB_OUTPUT_FILE env for blob ( #30559 )
...
Reference https://github.com/microsoft/playwright/issues/30091
2024-04-26 09:33:53 -07:00
Yury Semikhatsky
ae9345d0bd
docs: add FormData to the examples ( #30557 )
2024-04-25 16:31:27 -07:00
Dmitry Gozman
6d20da568e
feat: expect(locator).toHaveRole(role) ( #30555 )
...
References #13517 . Fixes #18332 .
2024-04-25 15:26:10 -07:00
Yury Semikhatsky
9a1b34a4b0
Revert "fix: shut down workers before reporter.onEnd ( #30329 )" ( #30551 )
...
This reverts commit 3cea17abb6 .
Reference https://github.com/microsoft/playwright/issues/30550
The test is preserved but marked as fixme.
2024-04-25 14:21:54 -07:00
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
Pavel Feldman
14413148f4
chore: document --last-failed ( #30544 )
...
drive-by: undocument --browser
2024-04-25 12:29:51 -07:00
Yury Semikhatsky
1cfa64343a
docs: describe report name configuration ( #30547 )
...
Reference https://github.com/microsoft/playwright/issues/30091
2024-04-25 10:15:25 -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
Yury Semikhatsky
f1f3929a67
chore: get rid of ConfigInWorker, use FullConfig instead ( #30517 )
...
Addressing API review feedback.
2024-04-24 14:14:05 -07:00
Max Schmitt
1b7e097b68
docs(python): add docs for new_context fixture ( #30522 )
...
https://github.com/microsoft/playwright-internal/issues/202
2024-04-24 22:40:38 +02:00
Yury Semikhatsky
4e086e6df8
docs: update type property description ( #30516 )
2024-04-24 13:10:17 -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
Yury Semikhatsky
67c430435a
docs: more accurate test id description ( #30487 )
...
Reference https://github.com/microsoft/playwright/issues/30430
2024-04-23 14:07:37 -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
b0fbe058ae
feat: TestProject.ignoreSnapshots ( #30466 )
2024-04-22 16:16:38 -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
3cea17abb6
fix: shut down workers before reporter.onEnd ( #30329 )
2024-04-16 09:49:11 -07:00
OKURA Masafumi
af634c2e1b
Fix a grammar mistake in ui-mode doc ( #30378 )
2024-04-15 15:24:04 -07:00
Christopher Dunderdale
f7e612fb4b
docs(auth): small improvement to .NET storageState example ( #30313 )
2024-04-15 10:32:12 +02:00
Max Schmitt
2b5488902a
docs(mock): fix typo ( #30346 )
...
Fixes https://github.com/microsoft/playwright/issues/30326
2024-04-11 11:37:44 -07:00
Max Schmitt
86cc252da2
docs: add v1.43 release notes for language ports ( #30263 )
2024-04-09 09:03:58 +02:00
Jean-François Greffier
aef2d3879c
docs(components): fix hooks imports in components test examples ( #30282 )
2024-04-08 09:46:01 +02:00
Dmitry Gozman
adc645d3cb
docs: note that sharding only works for parallel tests ( #30272 )
...
References #30253 .
2024-04-05 11:05:20 -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
Yury Semikhatsky
63f876a335
chore: remove overrides for type and status ( #30211 )
...
Reference https://github.com/microsoft/playwright/issues/29768
2024-04-02 17:42:13 -07: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
81bcf2a53b
docs: document FullReporter API ( #30186 )
...
* FullConfig split into FullConfig and ConfigInWorker
* FullProject split into FullProject and ProjectInWorker
* Tests can only access {Config, Project}InWorker, while reporters can
only access Full{Config,Project}. This will allow in the future to
change the reporter API independently from the tests.
* Added documentation for the 4 classes.
2024-04-02 16:15:02 -07:00
Yury Semikhatsky
39b3c93b85
docs: note about sharded projects in the merged config ( #30184 )
...
Fixes https://github.com/microsoft/playwright/issues/29841
2024-04-02 14:41:23 -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
Hansanto
a950a7b86b
feat: Support intervals arg for toPass ( #30037 )
...
Fixes #30040
# Context
In the `playwright.config` file, we can custom the default `timeout`
property for `expect.toPass` by the property:
```ts title='playwright.config.ts'
export default defineConfig({
// ...
expect: {
toPass: {
timeout: 60_000,
},
},
});
```
However, we can't customize the `intervals` option. So the default value
is always `[100, 250, 500, 1000]`.
# Goal
Add the possibility to customize the intervals option from the
`playwright.config` file.
```ts title='playwright.config.ts'
export default defineConfig({
// ...
expect: {
toPass: {
timeout: 60_000,
intervals: [1000, 2000, 3000]
},
},
});
```
2024-03-29 10:17:29 -07:00
Yury Semikhatsky
3001c9ac73
fix: preserve test declaration order in html and merged report ( #30159 )
...
* Add `Suite.entries` that returns tests and suites in their declaration
order
* Exposed `Suite.type` and `TestCase.type` for discriminating between
different entry types.
* Blob report format is updated to store entries instead of separate
lists for suites and tests.
* Bumped blob format version to 2, added modernizer.
Fixes https://github.com/microsoft/playwright/issues/29984
2024-03-29 10:12:33 -07:00
Pavel Feldman
4cce7e5bff
doc: document mocking read-only browser apis ( #30122 )
...
Documents https://github.com/microsoft/playwright/issues/30115
2024-03-26 14:20:20 -07:00
Dmitry Gozman
757f308475
docs: release notes 1.43 for js ( #30128 )
2024-03-26 13:25:00 -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 4b3c596874 and
a849ea9741
Reference https://github.com/microsoft/playwright/issues/28070
2024-03-26 12:36:35 -07:00
Julian Luis Almandos
c27ec77d55
docs(test-projects-js.md): fix typo in "Test filtering" section ( #30114 )
2024-03-26 08:15:02 -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
Max Schmitt
032f27ff84
docs: change if: always() to if: !cancelled() ( #30102 )
...
Fixes https://github.com/microsoft/playwright/issues/29451
See
https://github.com/microsoft/playwright/issues/29451#issuecomment-2008476721
for investigation.
2024-03-25 19:17:05 +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
Debbie O'Brien
1114c42e44
docs: add release video to release notes ( #29939 )
2024-03-14 15:45:26 +01:00
Dmitry Gozman
78b8aed4bd
docs: mark addLocatorHandler as experimental ( #29909 )
2024-03-12 12:02:25 -07:00
Dmitry Gozman
276ef5c19b
docs(auth): small note about UI mode ( #29887 )
...
Fixes #29846 .
---------
Signed-off-by: Dmitry Gozman <dgozman@gmail.com>
Co-authored-by: Max Schmitt <max@schmitt.mx>
2024-03-12 11:04:21 -07:00
Yury Semikhatsky
70f49f6ff1
docs: junit integration release notes ( #29885 )
2024-03-11 16:35:19 -07:00
Jean-François Greffier
8f4c2f714d
docs(java): update JUnit examples with new fixtures ( #29406 )
...
Documentation for JUnit integration aka JUnit fixtures
https://github.com/microsoft/playwright-java/issues/1369
2024-03-11 11:21:41 -07:00
Max Schmitt
d125ff4d39
docs: fix inconsistent .NET snippets ( #29831 )
2024-03-06 17:51:44 +01:00
Lukas Bockstaller
425f737eb6
feat: exposes tags in testInfo ( #29794 )
...
Fixes #29793 .
---------
Signed-off-by: Lukas Bockstaller <lukas.bockstaller@everest-erp.com>
Co-authored-by: Dmitry Gozman <dgozman@gmail.com>
2024-03-06 08:33:06 -08:00
Max Schmitt
a678561cda
docs(release-notes): fix wrong browser versions
2024-03-06 11:02:51 +01:00
Max Schmitt
b3edb2a130
docs: add release-notes for language bindings ( #29825 )
2024-03-06 10:47:04 +01:00
Max Schmitt
502d21e96a
docs: use relative links if possible ( #29823 )
2024-03-05 22:36:33 +01:00
Marco D'Agostini
d5d4f591f3
fix typo in docs: "toHaveScreeshot()" ( #29780 )
2024-03-02 17:00:16 -08:00
Jan Sepke
e83b4c25be
docs(test-snapshots-js.md): Add link to snapshotPathTemplate ( #29727 )
...
]
2024-03-02 07:28:45 -08: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
Elio Struyf
f4f26fdf7b
docs(reporters): added 3rd-party GitHub Actions Reporter ( #29728 )
2024-02-29 10:25:54 +01:00
Stevan Freeborn
52b803ecf5
feat(trace mode): add on-first-failure mode for traces ( #29647 )
...
Implements the changes suggested in #29531
2024-02-28 14:39:18 -08:00
Yury Semikhatsky
321e9d72c3
docs: better addLocatorHandler example in release notes ( #29692 )
2024-02-27 10:29:49 -08:00
Pavel Feldman
9d0430fa26
chore: strengthen linting ( #29669 )
2024-02-26 16:52:28 -08:00
Yury Semikhatsky
77e1b02552
docs: 1.42 release notes ( #29666 )
2024-02-26 16:34:19 -08:00
Yury Semikhatsky
c1421bc9f2
docs: typescript compiler invocation before tests ( #29667 )
...
Fixes https://github.com/microsoft/playwright/issues/29618
2024-02-26 15:26:05 -08:00
Simon Knott
c5af51c59d
docs(intro): fix grammar mistake in docs ( #29659 )
...
Signed-off-by: Simon Knott <info@simonknott.de>
2024-02-26 15:19:27 +01:00
Max Schmitt
adccd39b01
docs(dotnet): type specific addLocatorHandler handler ( #29586 )
2024-02-22 23:53:09 +01:00
Simon Willison
e846afeb98
docs(python): Clarify Pytest v.s. Library on Python intro page ( #29590 )
2024-02-22 09:27:41 +01:00
Yury Semikhatsky
9a1e0a8ff7
docs: custom reporter path in --reporter option ( #29585 )
...
Fixes https://github.com/microsoft/playwright/issues/29525
2024-02-20 13:32:53 -08:00
Jan Lelis
3f46ba0680
docs(auth): Fix double use of JSON.stringify in Session storage example ( #29554 )
2024-02-20 19:57:44 +01:00
Yury Semikhatsky
f3fde992eb
chore: remove --project-grep, add wildcard support ( #29537 )
...
Reference #15128
2024-02-16 19:18:00 -08:00
Dmitry Gozman
bd5403dcad
chore: remove --tag and tagFilter ( #29468 )
...
This makes new tags filtered by the `grep`. New `TestCase.tags` API now
includes both old and new tags.
2024-02-15 11:37:16 -08: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
93a2c00a1d
docs(webServer): add missing options ( #29490 )
2024-02-14 17:57:40 +01: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
918c26fa02
docs(other-locators): hide css:light selector engine ( #29491 )
...
https://github.com/microsoft/playwright/issues/29479
2024-02-14 08:49:42 -08:00
Brian Scramlin
2550ba3396
Update test-fixtures-js.md ( #29283 )
2024-02-13 11:28:34 -08:00
Max Schmitt
30557ed28c
fix(electron): stalling on delayed process close ( #29431 )
2024-02-13 10:25:46 +01:00
Yury Semikhatsky
7834beb932
chore: extract --project-grep option for matching with regex ( #29445 )
...
Reference https://github.com/microsoft/playwright/issues/15128
2024-02-10 11:19:00 -08:00
Dmitry Gozman
f0244b8a76
chore: rename handleLocator to addLocatorHandler ( #29443 )
2024-02-09 15:18:50 -08:00
Max Schmitt
abd8502490
devops: do not publish sha-X Docker images ( #29433 )
2024-02-09 09:07:10 -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
Dmitry Gozman
3331a40647
feat(test runner): tags/annotations ( #29248 )
...
API changes:
- `test(title, details, body)` where details contain `tag` and
`annotation`.
- similar `details` property added to `test.skip`, `test.fail`,
`test.fixme`, `test.only`, `test.describe` and other `test.describe.*`
variations.
- `TestProject.tagFilter`/`TestConfig.tagFilter` that supports logical
tag expressions with `(`, `)`, `and`, `or` and `not`.
- `--tag` CLI option to filter by tags.
- New annotations are available in `TestInfo.annotations` and
`TestCase.annotations`.
- New tags are available in `TestCase.tags`.
Reporter changes:
- `json` reporter includes new tags in addition to old `@smoke`-style
tags. **Breaking**: tags are now listed with the leading `@` symbol.
- `html` reporter filters by old and new tags with the same `@smoke`
token.
Fixes #29229 , fixes #23180 .
2024-02-07 16:31:25 -08:00
Colin Harris
bb380691f0
docs: reference GitHub actions/checkout@v4 and actions/setup-node@v4 ( #29392 )
2024-02-07 09:50:09 +01:00
Dmitry Gozman
9e285ce919
docs: do not call custom expect message an "error message" ( #29390 )
...
Fixes #29378 .
2024-02-06 12:12:45 -08:00
Dmitry Gozman
fb29d90052
docs: remove overloads from test.* APIs ( #29376 )
2024-02-05 19:03:04 -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
Christopher Dunderdale
36eed69fe2
docs(emulation): fix incorrect code snippet for using JavaScriptEnabled ( #29333 )
2024-02-04 10:31:28 +01:00
Max Schmitt
a6e0af6767
feat: parse projects option as RegExp ( #29327 )
...
Fixes https://github.com/microsoft/playwright/issues/15128
Relates https://github.com/microsoft/playwright/pull/17244
---------
Signed-off-by: Max Schmitt <max@schmitt.mx>
Co-authored-by: Yury Semikhatsky <yurys@chromium.org>
2024-02-02 23:05:20 +01:00
Max Schmitt
0f8d619012
docs(dotnet): add docs for SetDefaultExpectTimeout ( #29259 )
2024-01-31 17:49:01 +01:00
Daniel Han
be6ab76c04
docs: add CLI documentation for --no-deps ( #29235 )
2024-01-30 11:44:33 -08:00
iridescentGray
289127d523
docs: fix python mock docs ( #29230 )
2024-01-30 09:04:28 +01:00
iridescentGray
14f94fcff5
fix: python mock doc Missing ( #29187 )
2024-01-29 15:02:19 -08:00
John Hill
82f40d0802
docs: Add Warning about Github Annotations ( #29202 )
2024-01-29 14:59:28 -08: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
1db4e2effb
devops: bump GitHub Actions workflow actions ( #29219 )
...
Fixes:
<img width="2186" alt="image"
src="https://github.com/microsoft/playwright/assets/17984549/e75b4319-a8d9-4784-8357-83611f2671ae ">
2024-01-29 19:22:44 +01:00
Gabriel Feo
12a9a308f8
chore: replace "node.js" mention in shared docs ( #29119 )
...
Remove "Node.js" mention from the shared part of docs, which are shown
in docs for Python and other platforms.
2024-01-25 16:53:25 -08:00
Yury Semikhatsky
f49426b006
docs: update browsers when updating playwright ( #29128 )
2024-01-24 21:54:03 -08:00
Yury Semikhatsky
0752f0202f
docs: teardown examples ( #29134 )
...
Fixes https://github.com/microsoft/playwright/issues/29068
2024-01-23 16:35:30 -08:00
Yury Semikhatsky
ea855e232e
docs: update note on filtering dependent projects ( #29135 )
...
Fixes https://github.com/microsoft/playwright/issues/29102
2024-01-23 16:10:43 -08:00
Yury Semikhatsky
9cd2916623
docs: add a new fruit when mocking response ( #29137 )
...
Strawberry is already in the original list.
Fixes https://github.com/microsoft/playwright/issues/29114
2024-01-23 16:10:33 -08:00
Max Schmitt
d89ed88679
docs: do not recommend PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD anymore ( #29121 )
2024-01-23 09:12:47 -08:00
Yury Semikhatsky
fbf87ef904
fix: test.fail wrapper method ( #29112 )
...
Fixes https://github.com/microsoft/playwright/issues/29104
2024-01-22 19:47:27 -08:00
Max Schmitt
db00aa7305
fix: remove unused TestInfo.stdout/stderr ( #29076 )
...
https://github.com/microsoft/playwright/issues/29062
2024-01-22 19:22:31 +01:00
Dmitry Gozman
f3fac6f4e9
feat: page.handleLocator that closes any interstitial pages/dialogs ( #29029 )
2024-01-19 12:35:00 -08:00
Max Schmitt
6a15d43539
docs: rename example env var ( #29061 )
2024-01-19 17:43:37 +01:00
romanimm
a217d6a08d
docs: fix typo for stylePath ( #29034 )
2024-01-18 09:59:31 +01:00
inottn
0fa85143a0
docs: add missing imports ( #29014 )
2024-01-17 08:11:55 +01:00
Max Schmitt
7e6072583b
docs(docker): various enhancements ( #28994 )
...
Fixes https://github.com/microsoft/playwright-python/issues/2241
2024-01-16 19:27:17 +01:00
jonghoonpark
4c0a972b69
feat(expect): Make toPass's option configurable by TestConfig ( #28231 )
...
Co-authored-by: jonghoon.park <jonghoon.park@lucentblock.com>
Co-authored-by: Max Schmitt <max@schmitt.mx>
2024-01-16 12:28:38 +01:00
Max Schmitt
01af7e5d8e
docs(release-notes): add v1.41 release notes ( #28697 )
...
Signed-off-by: Max Schmitt <max@schmitt.mx>
Co-authored-by: Dmitry Gozman <dgozman@gmail.com>
2024-01-13 00:11:42 +01:00
Yury Semikhatsky
d4329bb6f2
docs: add example of data isolation between parallel tests ( #28958 )
2024-01-12 12:47:40 -08:00
Dmitry Gozman
37634df0c4
docs: note that opacity:0 still counts as visible element ( #28965 )
...
Closes #28954 .
2024-01-12 09:38:23 -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
Yury Semikhatsky
b392c2d392
docs: add proxy example to the API testing guide ( #28959 )
...
Fixes https://github.com/microsoft/playwright/issues/28940
2024-01-11 13:39:35 -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
Viicos
88d7ff97a1
docs(python): fix example in mock docs ( #28894 )
2024-01-08 15:14:56 +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
fad703d4ee
docs: update merge example to upload-artifact@v4 ( #28849 )
...
Artifacts in upload-artifact@v4 are
[immutable](https://github.com/actions/upload-artifact/tree/main?tab=readme-ov-file#breaking-changes ),
so we cannot simply copy reports into single artifact.
Fixes https://github.com/microsoft/playwright/issues/28800
2024-01-04 16:03:22 -08:00
Max Schmitt
32f595d1c9
docs(browsers): fix comment about stable Firefox ( #28862 )
2024-01-04 09:30:42 -08:00
Xuan
d8733d9229
docs: remove the create method from extensibility ( #28823 )
...
I saw the `create` method in the
[Extensibility](https://playwright.dev/docs/extensibility ) section of
the document but didn't quite understand its actual purpose. Therefore,
I attempted to add this method in the test examples, but it seems that
regardless of what this method returns or if it throws an error, it has
no effect. Upon further examination of the
[selectors.ts](https://github.com/microsoft/playwright/blob/main/packages/playwright-core/src/client/selectors.ts )
and
[types.ts](https://github.com/microsoft/playwright/blob/main/packages/playwright-core/src/client/types.ts#L129 )
files, I noticed that this method is not defined. Consequently, I opened
this pull request to remove the description of this method to prevent
any potential misunderstandings by others.
If there are any misunderstandings, feel free to close this pull
request. Thank you.
2024-01-03 09:39:57 -08:00
Nick Wittland
7bffff5790
docs: configuration of junit reporter in ci.md ( #28817 )
2023-12-31 13:43:10 -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
f7e298fec3
docs: clarify toPass timeout behavior ( #28747 )
...
Fixes https://github.com/microsoft/playwright/issues/28744
2023-12-20 15:39:53 -08:00
Yury Semikhatsky
87ca45366b
docs: quote to avoid variable expansion in powershell ( #28728 )
...
Fixes https://github.com/microsoft/playwright/issues/28724
2023-12-20 09:56:37 -08:00
Max Schmitt
e2c335a40c
docs(intro): update requirements to new macOS version ( #28683 )
2023-12-18 18:38:51 +01: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
Max Schmitt
665bce64ae
docs(dotnet): add a note on how to install a custom .NET version in Docker ( #28672 )
...
Fixes https://github.com/microsoft/playwright-dotnet/issues/2698
Relates https://github.com/microsoft/playwright/issues/28667
2023-12-15 10:40:50 -08:00
Max Schmitt
dfd8f25e6c
docs(csharp): refer to net8.0 (new LTS) ( #28664 )
2023-12-15 10:32:51 -08:00
Yury Semikhatsky
9c845365f7
chore: revert TestProject.botName for this release ( #28670 )
...
This is essentially a revert of f88288d71d
Reference https://github.com/microsoft/playwright/issues/27284
2023-12-15 09:48:34 -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
ff3b70b625
docs(docs): add docs about integrating Trace into NUnit/MSTest ( #28639 )
2023-12-13 21:03:29 -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
Dmitry Gozman
ac3600ec96
feat: explain that argument is a regex ( #28590 )
...
- in docs;
- in the error message.
Terminal output:
```
$ npx playwright test foobar
Error: No tests found.
Make sure that arguments are regular expressions matching test files.
You may need to escape symbols like "$" or "*" and quote the arguments.
```
References #28551 .
2023-12-11 17:35:39 -08:00
Dmitry Gozman
ee9a7dad12
docs: emphasize that has is a relative locator ( #28588 )
...
References #28556 .
2023-12-11 17:35:29 -08:00
Yury Semikhatsky
411abdb752
feat: add fileName option to blob reporter ( #28525 )
...
Reference https://github.com/microsoft/playwright/issues/27284
2023-12-06 20:44:06 -08:00
Yury Semikhatsky
f88288d71d
feat: config.botName for describing environment in the reports ( #28507 )
...
Reference https://github.com/microsoft/playwright/issues/27284
2023-12-06 13:34:16 -08:00
jaktestowac.pl
297f2af16b
docs: add info about merging fixtures to fixtures page ( #28468 )
2023-12-05 17:02:55 -08:00
Christopher Dunderdale
c8bc79655f
docs: fix various syntax errors in .NET documentation ( #28472 )
2023-12-05 09:19:12 -08:00
Yury Semikhatsky
74e51d334e
feat: wait for active route handlers on page/context close ( #28414 )
...
Reference https://github.com/microsoft/playwright/issues/23781
2023-12-04 16:19:05 -08:00
Dmitry Gozman
b4de3133cc
docs: add exposeNetwork option documentation to connectOptions fixture ( #28483 )
2023-12-04 09:38:17 -08:00
Laurent Thiebault
ac846c1632
docs: fix some typo ( #28450 )
2023-12-02 15:35:51 -08:00
Pavel Feldman
0a7a10d0f6
feat(vrt): allow providing screenshot style ( #28229 )
2023-11-30 17:42:45 -08:00
Max Schmitt
da6a36062e
docs(docker): add note on how to create your own ( #28434 )
...
https://github.com/microsoft/playwright/issues/28383
---------
Signed-off-by: Max Schmitt <max@schmitt.mx>
Co-authored-by: Dmitry Gozman <dgozman@gmail.com>
2023-11-30 14:04:42 -08:00
Dmitry Gozman
35c2633013
docs: state that grid support is experimental ( #28406 )
2023-11-29 12:16:10 -08:00
Yury Semikhatsky
cea28b2df9
docs: clarify beforeAll execution on exception ( #28361 )
...
Reference https://github.com/microsoft/playwright/issues/28285
2023-11-27 16:37:30 -08:00
Yury Semikhatsky
854ae4eede
docs: remove duplicate entry for --config ( #28357 )
2023-11-27 11:38:52 -08:00
Yair Cohen
54c9c7ff9c
docs(test-sharding) fix typo ( #28215 )
2023-11-23 18:00:02 +01:00
Debbie O'Brien
ff2f93e36d
docs: Add video for Playwright 1.40 ( #28309 )
2023-11-23 14:01:05 +01:00
Debbie O'Brien
3d54d377ba
docs: Update codegen documentation and screenshots ( #28302 )
2023-11-23 13:05:03 +01:00
Aislinn Hayes
1f953c2148
docs: add a link to screenshots api in the docs ( #28288 )
2023-11-23 11:06:06 +01:00
Yury Semikhatsky
2b4d51b1e8
docs: grep for project dependencies ( #28299 )
...
Fixes https://github.com/microsoft/playwright/issues/28296
2023-11-22 12:31:54 -08:00
Max Schmitt
e405c1deea
docs(trace-viewer): fix <details><summary> syntax ( #28276 )
2023-11-22 19:40:23 +01:00
Max Schmitt
d7d1c80cf7
docs(python): add ignoreCase to NotToHaveAttribute ( #28267 )
...
https://github.com/microsoft/playwright-python/issues/2078
2023-11-21 08:54:23 -08:00
Max Schmitt
8c880cad76
docs(release-notes): 1.40 nits ( #28271 )
2023-11-21 08:54:01 -08:00
Max Schmitt
5ef5e776f6
docs(browsers): add protocol to PLAYWRIGHT_FIREFOX_DOWNLOAD_HOST ( #28246 )
2023-11-20 21:17:37 +01:00
Dmitry Gozman
61c089fcbd
feat(recorder): UX updates for assertion tools ( #28198 )
...
- No locator editor.
- No value editor for `toHaveValue`.
- Visual feedback for `toBeVisible`/`toHaveValue`.
- UI tweaks.
2023-11-16 13:19:36 -08:00
Dmitry Gozman
aec4399d8f
docs: release notes for v1.40 ( #28175 )
2023-11-15 18:38:43 -08:00
Max Schmitt
30aa8cd904
docs(input): use web-first assertion for isChecked() ( #28162 )
...
Fixes https://github.com/microsoft/playwright/issues/28161
2023-11-15 10:51:30 -08:00
Hemang Rajyaguru
f76c261b16
docs(ci.md): added google cloud CI docs for NodeJs using the playwright Docker Image ( #27831 )
...
Fixes #27769
2023-11-14 13:57:14 -08:00
Yury Semikhatsky
ec2c7024b6
docs: fix ignoreCase description ( #28121 )
2023-11-14 10:18:04 -08:00
Dmitry Gozman
ec4893d235
docs: update phrasing for 1.40 features ( #28113 )
2023-11-13 15:56:50 -08:00
Yury Semikhatsky
35aeace476
docs(assertions): note on whitespace normalization ( #28110 )
...
Fixes https://github.com/microsoft/playwright-java/issues/1419
2023-11-13 12:28:50 -08:00
Elijah Mock
40b8df7217
docs(running-tests-*.md): Correct "running tests" typos ( #28055 )
...
I have corrected some typos and grammar issues that I found when reading
your documentation.
---------
Signed-off-by: Elijah Mock <28277163+ekcom@users.noreply.github.com>
2023-11-13 11:31:29 -08:00
Jozef Hollý
39a555513b
Add HOME=/root to container samples in docs ( #27832 )
...
Reference: #6500
(https://github.com/microsoft/playwright/issues/6500#issuecomment-1664210041 )
It seems that this is now required, so this PR applies that to the docs.
Signed-off-by: Jozef Hollý <1708197+j2ghz@users.noreply.github.com>
2023-11-13 10:49:39 -08:00
divdavem
0ade89c121
Partial documentation update, page.evaluate never returns a handle ( #28080 )
...
The documentation is misleading because `page.evaluate` never returns a
handle.
Some other parts of the documentation may need to be updated as well
(especially other languages than javascript, I think I saw this issue
also on other pages).
---------
Signed-off-by: divdavem <david-emmanuel.divernois@amadeus.com>
Co-authored-by: Max Schmitt <max@schmitt.mx>
2023-11-13 08:54:58 -08:00
Dmitry Gozman
c759e6a6f6
docs: move expect.extend docs from "test configuration" to "assertions" ( #28039 )
2023-11-08 09:29:36 -08:00
Max Schmitt
19b0f5ccb3
docs(dotnet): page -> Page ( #27988 )
...
Fixes https://github.com/microsoft/playwright-dotnet/issues/2738
Fixes https://github.com/microsoft/playwright/pull/27946
2023-11-07 09:28:18 +01:00
Yury Semikhatsky
53a78a315e
fix(merge): preserve original "rootDir" by default ( #27963 )
...
Fixes https://github.com/microsoft/playwright/issues/27877
2023-11-03 13:49:47 -07:00
Pavel Feldman
817a130cdc
chore: dispose-based callback termination ( #27911 )
2023-11-01 16:36:39 -07:00
Yury Semikhatsky
c7b6a76437
fix(fetch): throw when methods are called on disposed context ( #27868 )
...
Fixes #27822
2023-10-30 15:23:12 -07:00
Renan Greca
7bab19d807
docs: syntax corrections in expect.extend documentation ( #27772 )
...
Signed-off-by: Yury Semikhatsky <yurys@chromium.org>
Co-authored-by: Yury Semikhatsky <yurys@chromium.org>
Co-authored-by: Pavel Feldman <pavel.feldman@gmail.com>
2023-10-30 22:03:24 +01:00
Dmitry Gozman
88f30d1ce2
feat: support firefoxUserPrefs in launchPersistentContext ( #27840 )
...
Fixes #27773 .
2023-10-27 09:24:41 -07:00
Debbie O'Brien
d395a38a63
docs: add v1.39 release video ( #27838 )
2023-10-27 14:36:32 +02:00
Jorge Senín
89e0978da4
Update class-page.md ( #27750 )
2023-10-26 12:57:37 -07:00
Greg Bergé
ae1e1885dc
docs: add Argos Reporter to doc ( #27789 )
2023-10-26 10:05:02 -07:00
Yury Semikhatsky
0ade5aa9ad
fix: ignoreCase in toHaveAttribute ( #27809 )
...
Fixes #27795
2023-10-25 19:22:13 -07:00
Debbie O'Brien
09ff9a5908
docs: update screenshots ( #27760 )
2023-10-25 20:16:48 +02:00
Max Schmitt
766bc5cd77
docs: .NET ParallelScope ( #27745 )
...
Fixes https://github.com/microsoft/playwright-dotnet/issues/2732
2023-10-23 18:22:17 +02:00
Max Schmitt
9fcfe68fcb
docs: document PWDEBUG=console disables timeout ( #27725 )
...
Fixes https://github.com/microsoft/playwright/issues/27691
Signed-off-by: Max Schmitt <max@schmitt.mx>
2023-10-20 11:10:29 +02:00
Debbie O'Brien
a9bfb22852
docs: improve python ci guide ( #27724 )
2023-10-20 11:02:47 +02:00
Max Schmitt
02fe462dda
docs: remove why-playwright.md ( #27699 )
...
This is not referenced anywhere and not getting updated.
2023-10-19 17:32:59 +02:00
Ahmed Mubbashir Khan
7289cb7841
docs(ci): For Jenkins updated command from ci to npm ci ( #27702 )
2023-10-19 14:28:49 +02:00
Oleksandr Pelykh
7cd390b708
docs (test-cli-js.md): fix typo for list marker ( #27636 )
2023-10-18 13:56:22 -07:00
Sindre Bøyum
ee0811ad1a
docs: clarify devices import ( #27648 )
2023-10-18 13:55:20 -07:00
Max Schmitt
a005064cc8
docs: make test-timeouts AAA compliant ( #27667 )
2023-10-17 22:39:33 +02:00
Pavel Feldman
d4296dbff4
chore: break dowload.path() to throw ( #27662 )
2023-10-17 12:56:56 -07:00
Josh Lee
08bc4fd801
fix(registry): don't download x64 binaries on other platforms ( #27462 )
...
On Linux platforms, specifically check that process.arch is x64, rather
than treating it as 'not arm64'.
Treat Raspbian's /etc/os-release file as Debian.
Document the supported platforms somewhat.
Fixes #27453
2023-10-17 12:54:20 -07:00
Pavel Feldman
a54dbfdadf
chore: plumb the target close reason when test fails ( #27640 )
2023-10-16 20:32:13 -07:00
AlexKomanov
117f3f1298
docs: Fixing a release version of a method toHaveAttribute ( #27559 )
...
There is a mistake in the release version of the `toHaveAttribute`
method. It was released in the 1.39 version and not in the 1.40 like was
mentioned in the documentation.
2023-10-12 08:30:40 +02:00
Pavel Feldman
393bd36e0a
chore: composed->merge ( #27555 )
2023-10-11 13:56:27 -07:00
Dmitry Gozman
db4047b131
docs: update release notes for 1.39 ( #27549 )
2023-10-11 10:58:26 -07:00
Dmitry Gozman
0d168dc8d0
chore: release notes for 1.39 ( #27537 )
2023-10-10 15:17:43 -07:00
Dmitry Gozman
d11380e911
docs: improve test.step documentation ( #27535 )
2023-10-10 14:48:44 -07:00
Debbie O'Brien
2776d8446b
docs: how to update playwright in python ( #27527 )
2023-10-10 16:15:40 +02:00
Pavel Feldman
97c0894bc0
docs: better expect.extend docs ( #27515 )
2023-10-09 17:16:42 -07:00
Dmitry Gozman
1cb406f3a6
docs: note that pytest CLI args only apply to default fixtures ( #27511 )
...
Fixes #27413 .
2023-10-09 09:32:40 -07:00
Michael Bodnarchuk
e70b10ac2e
docs(test-reporters): Added Testomat.io reporter to list of reporters ( #27449 )
2023-10-07 11:17:44 +00:00
Debbie O'Brien
45fe42e896
docs: add latest release video ( #27479 )
2023-10-06 15:32:57 +02:00
Debbie O'Brien
3773f004db
docs: add intros for all pages ( #27480 )
2023-10-06 15:08:51 +02:00
Jim Hays
dcc8dcca73
Fix various typos ( Fixes #27396 ) ( #27391 )
...
Fixes https://github.com/microsoft/playwright/issues/27396
2023-10-04 19:56:42 -07:00
Pavel Feldman
25f06575bf
docs: recommend using test stories in ct ( #27440 )
...
Closes https://github.com/microsoft/playwright/issues/27439
2023-10-04 19:48:26 -07:00
Pavel Feldman
b2a07c2675
docs: improve the emulation viewport doc ( #27434 )
...
Closes https://github.com/microsoft/playwright/issues/27428
2023-10-04 16:57:23 -07:00
Yury Semikhatsky
ac48a47d33
feat: toHaveAttribute without value ( #27418 )
...
This time not doing it in other languages due to unjustified generator
complexity.
Fixes #27341
2023-10-04 09:27:28 -07:00
Caleb St-Denis
b5a40a90c2
docs: Fix typo in JS intro ( #27401 )
2023-10-03 09:52:33 +02:00
Debbie O'Brien
3a1e5f4b7b
docs: improve project dependencies ( #27390 )
2023-10-03 09:51:56 +02:00
Sander
d1ae0ab94f
docs(ct): pnpm create playwright ( #27377 )
...
pnpm supports the `create` command which acts as a shortcut to `pnpm dlx
create-*`
related:
https://github.com/microsoft/playwright/pull/24397/files#diff-af370723ed754e89d1e69d20f211a5a8249651b1b5692348398bbd105f1ac445R47
2023-10-02 10:58:58 -07:00
Dmitry Gozman
2a8d6a8207
docs: encourage using expect() instead of getters like textContent() ( #27362 )
2023-09-29 10:52:20 -07:00
Pavel Feldman
d136b0aeb6
feat(step): allow boxing steps ( #27334 )
2023-09-29 09:44:00 -07:00
Dmitry Gozman
7da1dfd21c
docs: add C# code snippet to extensibility.md ( #27328 )
...
Fixes #27160 .
2023-09-27 11:54:02 -07:00
jaktestowac.pl
6181960898
docs: best-practices update ( #27267 )
...
Best practices doc update:
- adding UI Mode to `Use Playwright's Tooling` section
- correcting heading for `Use parallelism and sharding` (previously this
section was falsy included in `Lint your tests`)
Fixes #27302
2023-09-26 12:26:15 -07:00
Yury Semikhatsky
3ea03c9f4c
docs: use encodeToString instead of encode in examples ( #27297 )
...
Fixes https://github.com/microsoft/playwright/issues/27273
2023-09-25 14:57:58 -07:00
Dmitry Gozman
7bd8032439
docs: mention Locator.first in toBeVisible ( #27292 )
...
Fixes #26842 .
2023-09-25 10:59:39 -07:00
Pavel Feldman
d6ec1ae399
chore: document chaining expect.extend ( #27262 )
...
Fixes https://github.com/microsoft/playwright/issues/15951
2023-09-22 13:56:59 -07:00
Matt Hooper
e786eddf5a
chore: Update README grammar ( #27159 )
2023-09-22 10:47:48 -07:00
Debbie O'Brien
175ae09fef
docs: improve trace viewer ( #27205 )
2023-09-22 16:57:02 +02:00
Debbie O'Brien
4b8e528136
docs: update screenshots ( #27207 )
...
- add new screenshots
2023-09-21 10:30:19 -07:00
Andrey Lushnikov
abde650398
docs: clarify Locator.or element matching ( #27208 )
...
Fixes https://github.com/microsoft/playwright/issues/27169
---------
Signed-off-by: Andrey Lushnikov <aslushnikov@gmail.com>
Co-authored-by: Dmitry Gozman <dgozman@gmail.com>
2023-09-20 13:14:19 -07:00
Debbie O'Brien
9f3c73b425
docs: ui mode minor docs fixes ( #27206 )
2023-09-20 19:19:01 +02:00
Debbie O'Brien
36f481b779
docs: small fix in headings ( #27209 )
2023-09-20 19:16:19 +02:00
Yury Semikhatsky
7f1d93dd3f
docs: 1.38 release notes for language ports ( #27167 )
2023-09-18 17:38:35 -07:00
Debbie O'Brien
40e8445b82
docs: update order to improve flo ( #27077 )
2023-09-18 20:10:18 +02:00
Debbie O'Brien
c119bd5bd8
docs: update screenshots test generator ( #27116 )
2023-09-15 13:01:57 -07:00
Debbie O'Brien
b9dda64dfe
docs: improve sidebar titles ( #27078 )
2023-09-15 13:01:08 -07:00
Debbie O'Brien
993f952d6a
docs: add screenshot for attachments ( #27076 )
2023-09-15 12:58:25 -07:00
Pavel Feldman
c6510ac000
chore: align select options docs ( #27097 )
...
Fixes: https://github.com/microsoft/playwright/issues/27094
2023-09-14 16:41:36 -07:00
Dmitry Gozman
603861c48d
fix: revert toMatchSnapshot deprecation ( #27089 )
...
- This reverts commit
8348f66107
landed in #26718 .
- Update docs to point towards `toHaveScreenshot`.
2023-09-14 12:52:41 -07:00
Brian Donovan
70fa1dd78a
docs: fix typo ( #27062 )
2023-09-14 12:45:36 +02:00
Andrey Lushnikov
d84357cedc
docs: fix line wrapping in release notes ( #27067 )
2023-09-13 15:55:31 -07:00
Andrey Lushnikov
e367b5a0c0
docs: add release notes for 1.38 ( #27028 )
...
Signed-off-by: Andrey Lushnikov <aslushnikov@gmail.com>
Co-authored-by: Max Schmitt <max@schmitt.mx>
2023-09-13 11:37:45 -07:00
Max Schmitt
5faa66912c
docs: add types to Python run() defs ( #27044 )
...
Fixes https://github.com/microsoft/playwright-python/issues/2071
2023-09-13 15:18:15 +02:00
Pavel Feldman
02c72e545b
feat(onEnd): allow overriding the exit code ( #27010 )
...
Fixes: https://github.com/microsoft/playwright/issues/26858
2023-09-12 13:37:30 -07:00
Debbie O'Brien
78309b9900
docs: update ui mode ( #26964 )
2023-09-12 18:28:11 +02:00
Debbie O'Brien
8bd26fe074
docs: running tests improvements ( #26956 )
2023-09-12 16:51:19 +02:00
Pavel Feldman
91478ea316
chore: document new onEnd params ( #27006 )
2023-09-11 18:17:49 -07:00
Debbie O'Brien
4d488b464a
docs: update intro for js ( #26959 )
2023-09-11 18:54:34 +02:00
Dmitry Gozman
186f86905c
chore: make @playwright/test depend on playwright ( #26946 )
2023-09-08 14:23:35 -07:00
Debbie O'Brien
829609dac0
docs: writing tests python merge with node ( #26926 )
2023-09-08 17:13:00 +02:00
Debbie O'Brien
9b99aea57f
docs: python running tests guide ( #26910 )
2023-09-07 15:47:40 +02:00
Yury Semikhatsky
34af2b9477
Revert "docs(java): Add SoftAssertions for Java ( #26512 )" ( #26917 )
...
As explained in
https://github.com/microsoft/playwright-java/issues/819#issuecomment-1709019419
we are not ready to ship this in its current form. Reverting for now.
This reverts commit 475c96d4c2 .
2023-09-06 15:28:54 -07:00
Max Schmitt
0527006a54
docs(test-typescript): rename transpilation issues doc ( #26893 )
2023-09-06 22:57:12 +02:00
Dmitry Gozman
abea8f4d1c
docs: update deprecation messages for type() methods ( #26912 )
2023-09-06 12:41:12 -07:00
Dmitry Gozman
361038c950
feat: rename PageError to WebError ( #26913 )
2023-09-06 12:40:53 -07:00
Pavel Feldman
e065a927bb
docs: fix string eval snippet
...
Signed-off-by: Pavel Feldman <pavel.feldman@gmail.com>
2023-09-05 16:34:56 -07:00
Timothy C. Quinn
2f4d1714b8
docs: fixing JS Comments for Evaluate ( #26880 )
2023-09-05 22:53:16 +02:00
Pavel Feldman
1fda6d1536
docs: remove --headless=chrome mentions ( #26865 )
...
Fixes https://github.com/microsoft/playwright/issues/26862
2023-09-05 08:42:54 -07:00
Andrey Lushnikov
afd4363aab
docs: enhance hooks example to illustrate after hooks behavior ( #26846 )
...
Fixes https://github.com/microsoft/playwright/issues/26821
2023-09-01 17:18:31 -07:00
Debbie O'Brien
583964f8dd
docs: move github section ( #26792 )
2023-09-01 14:42:47 +02:00
Dawn Wages
0bada4b31b
docs: python installation code block update ( #26818 )
2023-08-31 17:42:32 +02:00
Debbie O'Brien
d98e3a2bed
docs: move publish report to ci intro ( #26791 )
...
- move publish report section from sharding doc to github actions doc in
getting started guide
2023-08-30 11:03:00 -07:00
Pavel Feldman
34c6197f9e
chore: include start/endTime and duration in onEnd report callback ( #26760 )
...
Fixes https://github.com/microsoft/playwright/issues/23637
2023-08-29 10:56:21 -07:00
Dmitry Gozman
36347e7fea
feat: make playwright package not install browsers automatically ( #26672 )
...
Additionally introduce `@playwright/browser-<browser>` packages that
just download the respective browser, but do not export anything.
References #26614 .
2023-08-27 07:24:35 -07:00
Dmitry Gozman
8348f66107
feat: deprecate toMatchSnapshot for buffers ( #26718 )
...
These are usually used for screenshots instead of toHaveScreenshot.
String-based snapshots are left as is.
<img width="836" alt="deprecated"
src="https://github.com/microsoft/playwright/assets/9881434/d02818da-7eea-47fc-8ea8-4104b0dd49b5 ">
---
Also deemphasized toMatchSnapshot throughout all docs.
Fixes #26612 .
2023-08-25 18:20:01 -07:00
Steven Boutcher
4bf5b091d5
Fix run-on sentence in Best Practices docs ( #26622 )
2023-08-25 12:50:35 -07:00
Pavel Feldman
afb17b02a7
docs: remove outdated ct limitations ( #26707 )
2023-08-25 12:09:38 -07:00
Yury Semikhatsky
697429d222
docs: pageerror.error should return string in languages ( #26664 )
2023-08-23 14:31:18 -07:00
Jack Li
cfa8206a93
docs(chrome-extensions): remove conflict import ( #26631 )
2023-08-23 10:37:20 +02:00
Dmitry Gozman
c4e79eb6ed
feat: replace Locator.type with Locator.pressSequentially ( #26624 )
...
Also deprecate `Locator.type`, `Frame.type`, `Page.type` and
`ElementHandle.type`, but not `Keyboard.type`.
References #24614 .
2023-08-22 15:21:00 -07:00
Dmitry Gozman
5646875e5c
fix: make Request.frame throw when page is not ready yet ( #26616 )
...
Suggest to check `request.isNavigationRequest()` beforehand.
Fixes #24603 .
2023-08-22 14:06:21 -07:00
Dmitry Gozman
bb808ca964
docs: move PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD section to library-js ( #26617 )
...
Fixes #24607 .
2023-08-22 13:22:38 -07:00
Tahanima Chowdhury
cd07401d20
docs(test-runners-java.md): added testng implementation ( #26537 )
...
Resolves microsoft/playwright-java#1343
2023-08-22 08:57:12 -07:00
Max Schmitt
18e03da445
docs: use absolute paths for file uploads ( #26611 )
...
Fixes https://github.com/microsoft/playwright/issues/26536
This makes it a bit harder for MJS customers, but I guess they know that
they can do
const dirname = path.dirname(url.fileURLToPath(import.meta.url));
2023-08-22 17:38:23 +02:00
Rainer Hahnekamp
1515d4efdc
docs(sharding): fix GitHub Actions example ( #26586 )
2023-08-21 23:13:36 +02:00
Richard Blažo
bcc30bc71e
feat: add title for before and after hooks ( #26523 )
2023-08-21 09:50:22 -07:00
Kevin Centeno
ba4c242a82
docs(assertions): remove unneeded await in generic assertions example ( #26569 )
2023-08-21 18:13:25 +02:00
Grant Timmerman
d6956b88f8
docs: fix duplicate java release note metadata ( #26561 )
...
Co-authored-by: Max Schmitt <max@schmitt.mx>
2023-08-19 23:32:54 +02:00
Yury Semikhatsky
4f9bf63259
docs: blob reporter options ( #26508 )
...
Fixes #26481
2023-08-18 10:50:59 -07:00
uchagani
e15db7993a
docs(java): Remove hardcoded params from SoftAssertions alias ( #26531 )
2023-08-17 17:55:33 -07:00
uchagani
475c96d4c2
docs(java): Add SoftAssertions for Java ( #26512 )
...
This PR adds the `SoftAssertions` API for Java. Related PR:
https://github.com/microsoft/playwright-java/pull/1340
Note: https://github.com/microsoft/playwright.dev/pull/1135 needs to be
merged in order for the markdown in this PR to be rendered without
errors
2023-08-17 10:08:18 -07:00
Max Schmitt
5bcd1fb65f
docs(extensibility): make selectors.register per worker ( #26518 )
...
Fixes https://github.com/microsoft/playwright/issues/26493
2023-08-17 09:16:57 -07:00
Vignesh Shanmugam
adc9b2d390
feat: add support for browserContext.on('pageerror') ( #24452 )
...
+ fix #24466
+ Adds support for exposing the `pageerror` events via `browserContext`
API.
+ Helps with capturing the overall exceptions that are thrown outside of
the the current page and also captures the exceptions happens on other
windows/popups.
+ Keeps the API in sync with `context.on('request)',
context.on('console'), etc..`
2023-08-17 09:10:03 -07:00
Marcin Strzyz
42543a48a7
fix: fixed PW_TEST_HTML_REPORT_OPEN + more type safe + doc ( #24571 )
...
Co-authored-by: Max Schmitt <max@schmitt.mx>
2023-08-17 09:48:59 +02:00
ggorlen
0149c7d56c
docs: fix typo in Reporter.onEnd ( #26486 )
...
Signed-off-by: ggorlen <gsgorlen@gmail.com>
2023-08-17 00:40:14 +02:00
Jean-François Greffier
10eb7e8bc1
docs: Java Gradle installation ( #26418 )
...
Docs update to install Playwright as a dependency with Gradle, also
introduce how to run Playwright CLI
```bash
./gradlew playwright --args="help"
```
Fixes [#571 ](https://github.com/microsoft/playwright-java/issues/571 )
2023-08-15 11:19:24 -07:00
Yury Semikhatsky
6e51b95e2c
docs: terminate img tag ( #26475 )
2023-08-14 15:56:17 -07:00
Yury Semikhatsky
f75295224a
docs(merge): add screenshot, print url, fix name ( #26473 )
...
* Renamed test job to `playwright-tests` to match docs and rererences
* Added screenshot with github jobs and artifacts
* Print Azure URL
Fixes: https://github.com/microsoft/playwright/issues/24451
2023-08-14 15:40:13 -07:00
Max Schmitt
373a149a23
docs(test-sharding): fix GitHub workflow snippets ( #26465 )
2023-08-14 16:09:21 +02:00
Max Schmitt
5d875141c1
docs(release-notes): fix supported OSes table ( #26466 )
2023-08-14 15:58:46 +02:00
Jonas Claes
d849c7c81d
docs(test-reporters): sorted alphabetically and added Testmo ( #26452 )
2023-08-14 11:33:44 +02:00
Yury Semikhatsky
c888e299e0
docs: language release notes ( #26439 )
...
Signed-off-by: Yury Semikhatsky <yurys@chromium.org>
Co-authored-by: Max Schmitt <max@schmitt.mx>
2023-08-11 12:36:01 -07:00
Max Schmitt
2fa2d4756a
docs(release-notes): add 1.37 video ( #26436 )
2023-08-11 20:35:55 +02:00
Dmitry Gozman
b899d61a51
docs: examples that save download with suggested filename ( #26425 )
...
Fixes #26341 .
2023-08-10 17:20:39 -07:00
Dmitry Gozman
8e93515ab9
docs: add more details about deps execution order ( #26424 )
...
Fixes #26367 .
2023-08-10 16:33:01 -07:00
Dmitry Gozman
050f26764e
docs: explain how to reset storage state ( #26422 )
...
References #26374 .
2023-08-10 16:32:45 -07:00
Andrey Lushnikov
f8eb6a8ea7
docs: add release notes for js v1.37 ( #26411 )
2023-08-10 14:31:36 -07:00
Yury Semikhatsky
fe5cb1603b
docs(merge): use azcopy for uploads ( #26382 )
2023-08-09 12:05:12 -07:00
Max Schmitt
732ee1502c
docs(python): add note about pytest-playwright on Anaconda ( #26372 )
...
Fixes https://github.com/microsoft/playwright-pytest/issues/127
2023-08-09 15:43:02 +02:00
Yury Semikhatsky
44f9b10ff2
docs: clarify --config option ( #26356 )
2023-08-08 14:47:27 -07:00
Yury Semikhatsky
0f0045be94
docs: shard numbers in yaml ( #26336 )
2023-08-08 11:09:43 -07:00
Max Schmitt
1383844af8
docs: make --grep more clear ( #26324 )
...
Fixes https://github.com/microsoft/playwright/issues/24604
2023-08-07 17:40:30 +02:00
Dmitry Gozman
1d4919cea4
docs: encourage using fill instead of type ( #24616 )
...
References #24614 .
2023-08-04 14:19:57 -07:00
Pavel Feldman
8fde110c61
chore: allow web server w/o waiting ( #24609 )
2023-08-04 12:05:16 -07:00
Max Schmitt
1afa9d44fb
docs(debug): remove incorrect console APIs ( #24602 )
...
This got accidentally added in
54f7141877 .
Fixes https://github.com/microsoft/playwright/issues/24562
2023-08-04 17:35:59 +02:00
Max Schmitt
ec6d692e2e
docs: change :::tip to :::note ( #24610 )
...
Fixes https://github.com/microsoft/playwright/issues/24551
2023-08-04 17:35:51 +02:00
Yury Semikhatsky
8b18722181
chore: drop run_attempt from github artifact name ( #24594 )
2023-08-03 15:34:23 -07:00
Andrey Lushnikov
be1e8e061e
docs: minor changes to the merge-reports documentation ( #24585 )
2023-08-03 10:17:01 -07:00
Max Schmitt
b0473b71cd
chore: limit docs snippet length to 100 ( #24563 )
2023-08-02 11:23:47 +02:00
Dmitry Gozman
29e63d1deb
docs: update sharding doc ( #24558 )
2023-08-01 16:03:36 -07:00
Debbie O'Brien
f6d63f7c99
docs: update example test assertion ( #24554 )
...
uses different assertion to make test visually better when using trace
viewer etc and is more realistic example
2023-08-01 22:04:04 +02:00
Yury Semikhatsky
ce341ae5b5
docs: clarify setContent semantics ( #24553 )
...
Fixes https://github.com/microsoft/playwright/issues/24503
2023-08-01 11:45:58 -07:00
Dmitry Gozman
578e8e01b7
docs: improve auto-retrying vs generic assertions ( #24528 )
...
Fixes #24460 .
2023-07-31 20:20:27 -07:00