Dmitry Gozman
8fcf838c37
chore: move some playwright-wide options to be per browser ( #36342 )
2025-06-18 08:28:33 +01:00
Dmitry Gozman
357ebfe671
chore: make input actions "strict" in terms of timeout/abort ( #36302 )
2025-06-16 10:13:31 +01:00
Dmitry Gozman
33d87d93dd
chore: accept Progress instance for raw input ( #36280 )
2025-06-12 10:12:42 +01:00
Dmitry Gozman
3c248ed163
chore: remove PLAYWRIGHT_INPUT_FILE_TEXTBOX ( #36281 )
2025-06-12 09:46:04 +01:00
Simon Knott
34c2954326
fix: java style selector string ( #36227 )
...
Signed-off-by: Dmitry Gozman <dgozman@gmail.com>
Co-authored-by: Dmitry Gozman <dgozman@gmail.com>
2025-06-06 15:26:38 +01:00
Dmitry Gozman
8d27a06960
chore: reduce scrolling during clicks ( #36175 )
2025-06-03 19:34:55 +01:00
Pavel Feldman
0ab13695e7
chore: allow describing the aria refs ( #36071 )
2025-05-26 12:32:58 -07:00
Dmitry Gozman
fd7d249ed4
chore: cleanup runtimeGuid and other builtins bits ( #36035 )
2025-05-21 22:10:41 +01:00
Dmitry Gozman
6532d7c7d6
chore: move timeout handling to the client ( #35988 )
2025-05-20 15:51:33 +01:00
Pavel Feldman
a6b4b222ed
chore: upstream the frame tree snapshot ( #35917 )
2025-05-09 16:15:16 -07:00
Pavel Feldman
9de2bd49e4
Revert "chore: upstream the frame tree snapshot" ( #35911 )
2025-05-09 11:28:25 -07:00
Pavel Feldman
0876b99a4d
chore: upstream the frame tree snapshot ( #35902 )
2025-05-08 15:18:28 -07:00
Pavel Feldman
f89d0ae870
chore: make refs & emitGeneric private for mcp ( #35888 )
2025-05-08 08:33:10 -07:00
Yury Semikhatsky
baeb065e9e
chore: remove underscore from public members in page ( #35820 )
2025-04-30 18:57:59 -07:00
Dmitry Gozman
3b0135411e
chore: inject builtins through esbuild ( #35800 )
2025-04-29 20:07:06 +01:00
Pavel Feldman
3371fb9bea
chore: do not leak pw internals ( #35721 )
2025-04-23 21:53:17 -07:00
Pavel Feldman
7ec70c61d7
feat(aria): emit generic nodes ( #35686 )
2025-04-21 17:36:10 -07:00
Pavel Feldman
6262a1264f
chore: retry selecting option for the notconnected case ( #35610 )
2025-04-14 16:51:08 -07:00
Dmitry Gozman
4c85672f02
fix(role): <input type=file>
should be a button ( #35514 )
2025-04-08 09:02:19 +01:00
Yury Semikhatsky
b8a0d5f6cd
chore: move injected scripts into packages/injected ( #35483 )
2025-04-03 16:09:03 -07:00
Yury Semikhatsky
dbbdabfd1b
chore: pass JSHandles instead of ObjectId to/from context delegate ( #34895 )
2025-02-24 12:11:17 -08:00
Yury Semikhatsky
962a752832
chore: contain remote objects to browser-specific code ( #34890 )
2025-02-21 16:52:39 -08:00
Max Schmitt
3584e72223
chore: remove 'as *' imports because of esModuleInterop: true
( #34854 )
2025-02-19 15:32:12 +01:00
Yury Semikhatsky
145b6bf4fe
chore: browser independent setInputFiles implementation ( #34808 )
2025-02-14 16:44:27 -08:00
Pavel Feldman
8b28e637c8
chrome: remove state from isomorphic utils ( #34795 )
2025-02-14 15:10:50 -08:00
Pavel Feldman
4a7f6a6ef0
chore: organize imports in playwright-core ( #34680 )
2025-02-07 13:54:01 -08:00
Pavel Feldman
bd2fdd0f20
chore: land experimental tools ( #34503 )
2025-01-27 14:49:38 -08:00
Pavel Feldman
0d34369fc0
chore: include actual value in the elementState ( #34245 )
2025-01-07 15:31:18 -08:00
Dmitry Gozman
43e4ba9f2f
fix(click): better compensate for integer click coordinates in firefox ( #33467 )
2024-11-07 00:01:00 -08:00
Pavel Feldman
c76f004ec3
chore: move compress call log to server ( #33399 )
2024-11-01 13:38:01 -07:00
Pavel Feldman
94321fef1c
chore: implement locator.ariaSnapshot ( #33125 )
2024-10-15 18:47:26 -07:00
Dmitry Gozman
84b4fd4e40
feat: wait for pending navigation to resolve before many actions ( #32899 )
...
This includes all actions that perform locator handler check.
Note this makes it impossible to interact with the page while a main
frame navigation is ongoing. This was already the case for Chromium, but
now WebKit and Firefox align with it.
Setting `PLAYWRIGHT_SKIP_NAVIGATION_CHECK` environment variable disables
this behavior.
2024-10-04 07:25:18 -07:00
Dmitry Gozman
773202867d
feat(trace): highlight strict mode violation elements in the snapshot ( #32893 )
...
This is fixing a case where the test failed with strict mode violation,
but all the matched elements are not highlighted in the trace.
For example, all the buttons will be highlighted when the following line
fails due to strict mode violation:
```ts
await page.locator('button').click();
```
To achieve this, we mark elements during `querySelector` phase instead
of inside `onBeforeInputAction`. This allows us to only mark from inside
the `InjectedScript` and remove the other way of marking from inside the
`Snapshotter`.
2024-10-02 00:00:45 -07:00
Yury Semikhatsky
11320d34c6
Revert chore: ignore third-party execution contexts ( #32437 ) ( #32771 )
...
Partially revert #32437 and add a test that console.log() messages from
content scripts are properly reported
Fixes https://github.com/microsoft/playwright/issues/32762
2024-09-23 15:48:11 -07:00
Yury Semikhatsky
9a2c60a77c
chore: identify largest gaps in Bidi API ( #32434 )
...
This pull request introduces initial support for the WebDriver BiDi
protocol in Playwright. The primary goal of this PR is not to fully
implement BiDi but to experiment with the current state of the
specification and its implementation. We aim to identify the biggest
gaps and challenges that need to be addressed before considering BiDi as
the main protocol for Playwright.
2024-09-04 11:36:52 -07:00
Yury Semikhatsky
d7b9cf21db
chore: ignore third-party execution contexts ( #32437 )
...
* Only track main and utility world contexts
* Properly update click metadata
2024-09-03 23:00:59 -07:00
Dmitry Gozman
abe6c04a54
chore: remove noWaitAfter
from selectOption ( #32283 )
...
This follows removing this option from other methods in v1.46. The two
methods still supporting `noWaitAfter` are `click` and `press`.
2024-08-23 14:50:43 -07:00
Dmitry Gozman
6491e5b415
chore: deprecate/remove noWaitAfter from some actions ( #31739 )
...
The following actions keep `noWaitAfter` option: `click`, `selectOption`
and `press`.
All other actions that used to have `noWaitAfter` now behave like it was
set to true, not waiting for follow-up navigations. In the docs, this
option is marked as completely ignored.
A small logic change was made to compensate for this behavior: when
waiting for the `hitTargetInterceptor`, we now race it against
navigations to avoid stalling when navigation stalls. Previously,
waiting for the interceptor was disabled when `noWaitAfter` was passed,
and since it's impossible to pass this option now, we mitigate by never
stalling instead.
Fixes #31469 .
2024-07-18 00:19:08 -07:00
Max Schmitt
7ce9b7e56b
fix(setInputFiles): throw when uploading file in directory upload ( #31706 )
2024-07-16 15:55:35 +02:00
Max Schmitt
dcf4e4e054
feat: allow folder uploads ( #31165 )
2024-06-12 22:20:18 +02:00
Pavel Feldman
8bfd0eb6e4
chore: introduce clock test mode ( #31110 )
2024-05-31 14:44:26 -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
Max Schmitt
7cbef691ae
fix: throw error if setInputFile does not exist ( #29944 )
...
Fixes https://github.com/microsoft/playwright/issues/29941
2024-03-14 20:27:33 +01:00
Dmitry Gozman
0f30cdab23
feat(firefox): roll ff and ff-beta to 1442 ( #29751 )
...
This requires changes in `FFPage`.
Also fixing a new ff-specific test that introduced flakiness on the
bots.
Closes https://github.com/microsoft/playwright/pull/29750
Closes https://github.com/microsoft/playwright/pull/29724
Closes https://github.com/microsoft/playwright/pull/29681
Closes https://github.com/microsoft/playwright/pull/29678
2024-02-29 14:44:45 -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
f3fac6f4e9
feat: page.handleLocator
that closes any interstitial pages/dialogs ( #29029 )
2024-01-19 12:35:00 -08:00
Dmitry Gozman
e6d51cf7bd
chore: refactor actionability check to go through node-side retry ( #28982 )
...
This allows to inject a checkpoint in between the actionability checks.
Drive-by: cleanup `InjectedScriptPoll`-related code.
2024-01-16 19:11:41 -08:00
Yury Semikhatsky
fae5dd898a
chore: remove from client check if browser is co-located with server ( #28071 )
...
Reference https://github.com/microsoft/playwright/issues/27792
2023-11-10 15:24:31 -08:00
Yury Semikhatsky
36c4c24f8a
fix: only convert input files for browser collocated with server ( #27873 )
...
Reference #27452
Fixes #27792
2023-11-01 08:40:12 -07: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