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
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
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
Dmitry Gozman
2a8d6a8207
docs: encourage using expect()
instead of getters like textContent()
( #27362 )
2023-09-29 10:52:20 -07:00
Dmitry Gozman
7bd8032439
docs: mention Locator.first in toBeVisible ( #27292 )
...
Fixes #26842 .
2023-09-25 10:59:39 -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
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
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 475c96d4c27fd70791b5851e07d11d079d01c545.
2023-09-06 15:28:54 -07: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
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
Yury Semikhatsky
697429d222
docs: pageerror.error should return string in languages ( #26664 )
2023-08-23 14:31:18 -07: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
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
Kevin Centeno
ba4c242a82
docs(assertions): remove unneeded await in generic assertions example ( #26569 )
2023-08-21 18:13:25 +02: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
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
Dmitry Gozman
b899d61a51
docs: examples that save download with suggested filename ( #26425 )
...
Fixes #26341 .
2023-08-10 17:20:39 -07:00
Dmitry Gozman
1d4919cea4
docs: encourage using fill instead of type ( #24616 )
...
References #24614 .
2023-08-04 14:19:57 -07:00
Max Schmitt
b0473b71cd
chore: limit docs snippet length to 100 ( #24563 )
2023-08-02 11:23:47 +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
a74101d98f
docs: document expect's asymmetric matchers ( #24498 )
...
References #24460 , #24417 .
2023-07-28 14:04:01 -07:00
Dmitry Gozman
ea6d127f28
feat(connect): exposeNetwork option ( #24436 )
2023-07-26 17:29:31 -07:00
Dmitry Gozman
c8b45aa844
chore: validate markdown links in doclint ( #24444 )
...
Fixes #24421 .
2023-07-26 16:15:07 -07:00
Alex Ravenna
b93b2a7155
docs: fix minor grammar and text issues ( #24331 )
2023-07-24 14:59:15 +02:00
Raphi
2d9cdb6ab4
docs(java): add support for Chrome DevTools Protocol ( #24150 )
...
Implemented in https://github.com/microsoft/playwright-java/pull/1329
2023-07-17 10:12:04 -07:00
Max Schmitt
6ab6cde929
docs(python): remove await in sync code snippet ( #24124 )
2023-07-10 16:08:39 +02:00
Max Schmitt
fef029e98e
docs: code snippet alignments ( #23959 )
2023-06-29 18:26:19 +02:00
Dmitry Gozman
1ab99fe1b8
feat(electron): support tracesDir option ( #23947 )
...
References #23620 .
2023-06-28 16:32:16 -07:00
Max Schmitt
9980f054bc
docs: align Node.js code snippets with ESLint ( #23916 )
2023-06-27 11:53:53 +02:00
Max Schmitt
71650f9bd1
docs(python): fix syntactically incorrect snippets ( #23904 )
2023-06-27 11:53:27 +02:00
Max Schmitt
69ae8c1a28
docs(dotnet): fix syntactically incorrect code snippets ( #23900 )
2023-06-26 18:21:14 +02:00
Andrey Lushnikov
0f4090472c
feat: add maskColor
option to the toHaveScreenshot
method ( #23555 )
2023-06-06 17:15:55 -07:00
Andrey Lushnikov
5cd271a2a7
docs: add option clarifications ( #23384 )
...
Fixes https://github.com/microsoft/playwright/issues/23355
2023-05-30 17:19:48 -07:00
retrowaver
7638b4bb76
docs: fix python example for Locator.last ( #23378 )
2023-05-31 00:52:51 +02:00
Max Schmitt
d6e24fafe8
docs: specify assertion timeout type ( #23333 )
...
Fixes https://github.com/microsoft/playwright-dotnet/issues/2589
2023-05-30 18:13:14 +02:00
Yury Semikhatsky
962c32ae10
docs: fix since version for the methods new in 1.34 ( #23315 )
2023-05-26 11:03:31 -07:00
keita hino
f301ddfc7e
docs(class-locator.md): fix incorrect version of locator-and ( #23216 )
2023-05-26 09:47:19 -07:00
Nour Z
f9521a01ce
docs: updated documentation URLs to use Playwright Homepage ( #23250 )
2023-05-24 08:43:42 -07:00
Jasiel Guillén
700062c836
feat(screenshot): Add customizable color option for masked elements ( #23185 )
...
I added a new option to the screenshot method to customize the color of
the box when we want to mask some elements for the screenshot.
The default color is pink `#FF00FF`, but with this new option you can
specify the color you like the most, like a nice green `#00FF00`:
```js
await page.screenshot({
mask: [page.locator('div').nth(5)],
maskColor: "#00FF00",
})
```

---------
Signed-off-by: Jasiel Guillén <darkensses@gmail.com>
2023-05-22 18:44:44 -07:00
Max Schmitt
9b4f9b1136
docs: add dialog/consoleMessage helper methods for language bindings ( #23140 )
...
https://github.com/microsoft/playwright-dotnet/issues/2565
---------
Co-authored-by: Yury Semikhatsky <yurys@chromium.org>
2023-05-18 23:47:28 +02:00
Dmitry Leonov
aef7a2817d
docs: fix function name mismatch in python route example ( #23010 )
2023-05-14 16:52:11 +02:00
Pavel Feldman
c9d5b05440
docs: document subdomain cookie matching ( #23007 )
...
Fixes https://github.com/microsoft/playwright/issues/22977
2023-05-12 19:15:51 -07:00
Pavel Feldman
e41b21dc7b
chore: update navigation and timers docs ( #22941 )
2023-05-11 09:56:48 -07:00
Debbie O'Brien
759d14b881
docs: add titles for remaining examples ( #22939 )
...
Co-authored-by: Max Schmitt <max@schmitt.mx>
2023-05-10 23:30:51 +02:00
Debbie O'Brien
7a8eb15820
docs: add titles to config snippets ( #22910 )
...
Docs PR: https://github.com/microsoft/playwright.dev/pull/1039
---------
Co-authored-by: Max Schmitt <max@schmitt.mx>
2023-05-10 18:38:12 +02:00
Ruben
f9eeaa2b75
docs: update import in code example ( #22591 )
2023-05-10 15:18:20 +02:00