Blake Williams
5f86253ad4
docs: add more detail to waitForNavigation API method ( #3635 )
2020-08-25 21:05:27 -07:00
Max Schmitt
72b3147d7c
docs(example): simplified overwriting of requests ( #3621 )
2020-08-25 10:37:45 -07:00
Dmitry Gozman
cd220daa83
chore: move src files to server ( #3593 )
2020-08-24 06:51:51 -07:00
Dmitry Gozman
18292325b6
api: add waitForElementState('disabled') ( #3537 )
...
Allows waiting for the element to be disabled.
2020-08-19 17:20:10 -07:00
Arjun Attam
a78d83e833
docs: clarify response and requestfinished events ( #3532 )
...
* docs: clarify response and requestfinished events
* fix typo
2020-08-19 13:36:56 -07:00
Dmitry Gozman
0e9793c452
api: ElementHandle.waitForElementState ( #3501 )
...
This method waits for visible, hidden, stable or enabled state,
similar to the actionability checks performed before actions.
This gives a bit more control to the user. Some examples:
- Allows to wait for something to be stable before taking a screenshot.
- Allows to wait for the element to be hidden/detached after a specific action.
2020-08-17 16:22:34 -07:00
Dmitry Gozman
85c93e91a7
api: introduce ElementHandle.waitForSelector ( #3452 )
...
This is similar to Frame.waitForSelector, but relative to the handle.
2020-08-14 14:47:24 -07:00
Natan
d9727c62df
Typo fix ( #3430 )
2020-08-13 10:44:17 -07:00
Arjun Attam
06ddacd7be
docs: introduce doc on authentication ( #3404 )
2020-08-12 16:02:23 -07:00
Dmitry Gozman
a574fa6edb
api: add Frame.page() getter ( #3392 )
2020-08-12 14:45:36 -07:00
Dmitry Gozman
6c68435e7e
docs: make api docs around pointer actions more explicit ( #3374 )
...
- Describe performed steps in detail.
- Describe timeout conditions.
2020-08-10 15:08:52 -07:00
Dmitry Gozman
c6acc32889
docs(api): explicit nulls, use Serializable and EvaluationArgument more ( #3358 )
2020-08-07 20:55:22 -07:00
Yevhen
3665bb0a9a
docs(api): remove extra closing square bracket, add an opening square bracket. ( #3342 )
2020-08-07 08:29:31 -07:00
Arjun Attam
4ec3290da3
docs(api): replace select-all note with example ( #3328 )
2020-08-06 21:23:30 -07:00
Dmitry Gozman
cdfe73fee3
api(console): make ConsoleMessageLocation properties required ( #3290 )
...
Everywhere in our api, possibly missing properties are nullable.
However, to make things easier for everyone, we just default to an
empty url instead, so that users do not have to null-check it.
2020-08-05 22:25:56 -07:00
Pavel Feldman
b03b4a5566
chore: doc type nits ( #3283 )
2020-08-05 09:54:31 -07:00
Dmitry Gozman
028dd08155
docs: update documentation for evaluation argument ( #3287 )
2020-08-04 14:45:34 -07:00
Dmitry Gozman
ba9030e6be
docs: update api.md with more references to actionability ( #3255 )
2020-07-31 12:16:21 -07:00
Ross Wollman
ce0ddd270b
feat(download): create directories for saveAs ( #3249 )
...
This is to match the behavior for screenshots path added in #3247 .
2020-07-30 23:21:03 -07:00
Pavel Feldman
93056ed8ef
chore(rpc): more protocol nits ( #3246 )
2020-07-30 17:51:41 -07:00
Dmitry Gozman
2f95b6e34e
feat(selectors): auto-detect xpath starting with ".." ( #3239 )
2020-07-30 16:21:48 -07:00
Pavel Feldman
1728a3df93
chore: minor protocol fixes ( #3226 )
2020-07-30 11:14:41 -07:00
Max Schmitt
21b1be7351
docs(selectors): fixed selector register example ( #3169 )
2020-07-29 10:37:57 -07:00
Dmitry Gozman
97c10002e7
api: introduce Browser.version() ( #3177 )
2020-07-27 13:41:35 -07:00
Pavel Feldman
e7cca86757
fix(postData): allow overriding binary post data ( #3120 )
2020-07-24 12:16:45 -07:00
Pavel Feldman
80c0711d98
feat(firefox): roll firefox to r1137 ( #3095 )
2020-07-22 15:59:37 -07:00
Ross Wollman
d8a17fb0ab
api(download): Add saveAs helper ( #2872 )
2020-07-22 14:55:27 -07:00
Dmitry Gozman
ced0bc2d1b
api: make clear the use of null in page.emulateMedia ( #3078 )
...
We can pass null to disable emulating particular feature.
This change updates the docs and rpc protocol accordingly.
2020-07-21 18:56:41 -07:00
Andrey Lushnikov
47e30f047b
feat: introduce chromiumSandbox
launch option ( #3067 )
...
The option is intended to be used instead of the `--no-sandbox`
argument that is accepted exclusively by Chromium and crashes
WebKit.
References #2745
2020-07-21 13:49:09 -07:00
Pavel Feldman
99658c2d32
feat(bringToFront): enable on all browsers ( #3052 )
2020-07-21 09:36:54 -07:00
Darío Kondratiuk
79d5991a27
doc: Improve unroute documentation ( #3026 )
2020-07-18 10:54:09 -07:00
Tapajyoti Bose
16e3776a9c
fix(JSCoverageEntry): added scriptId and isBlockCoverage ( #2955 )
2020-07-16 20:32:49 -07:00
Yevhen
de7969f0f5
docs(api/input): fix typo ( #2837 )
2020-07-07 10:46:13 -07:00
Dmitry Gozman
807dc1f324
fix(crash): improve documentation for crash, reject waitForEvent ( #2694 )
2020-06-25 09:53:56 -07:00
Dmitry Gozman
39ce35e154
fix(errors): strict error handling around element operations ( #2567 )
...
- Gave all possible dom errors distinct names, and throw them on the node side.
- Separated errors into FatalDOMError and RetargetableDOMError.
Fatal errors are unrecoverable. Retargetable errors
could be resolved by requerying the selector.
- This exposed a number of unhandled 'notconnected' cases.
- Added helper functions to handle errors and ensure TypeScript catches
unhandled ones.
2020-06-24 15:12:17 -07:00
Dmitry Gozman
355305d31d
feat(screenshot): accept timeout, migrate to Progress, wait for visible ( #2679 )
...
Element screenshot now waits for the element to become visible and
throws on detach.
Both screenshot methods accept a timeout and capture logs using Progress.
Also, carefully handling exceptions and restoring the viewport.
2020-06-24 10:16:54 -07:00
Dmitry Gozman
d0a6e1a64e
fix(dom): make selectText and scrollIntoViewIfNeeded wait for visible ( #2628 )
...
All other methods wait for the element to be visible, so we should make
them behave similarly.
2020-06-23 13:02:31 -07:00
Max Schmitt
20b23cd21e
docs: fixed various typos ( #2633 )
2020-06-18 15:04:21 -07:00
Andrey Lushnikov
f61e85291b
docs: update docs for per-browser download hosts ( #2630 )
2020-06-18 12:35:37 -07:00
Dmitry Gozman
fd9b1031fa
docs: add actionability doc ( #2577 )
2020-06-15 13:40:55 -07:00
Arjun Attam
2659910be8
docs: make environment vars snippets cross-platform ( #2564 )
2020-06-13 13:11:39 -07:00
Darío Kondratiuk
e3f34f6ae2
fix(selectOption): allow passing null to unselect all ( #2405 )
2020-06-10 09:37:29 -07:00
Pavel Feldman
9aa9d6bc1d
feat(downloads): accept downloads in persistent, allow specifying the downloadsPath ( #2503 )
2020-06-08 21:45:35 -07:00
Pavel Feldman
fb058ffe0d
feat(proxy): allow specifying proxy ( #2485 )
2020-06-05 13:50:15 -07:00
Pavel Feldman
c001facffc
feat(firefox): allow passing user prefs at launch time ( #2417 )
2020-05-31 09:28:57 -07:00
GkqqNkKC
59a0451b62
docs: fix spell mistake on api.md ( #2408 )
2020-05-29 08:51:45 -07:00
Dmitry Gozman
057ae14adc
feat: make browserServer.kill() wait for the process to exit ( #2375 )
...
This ensures we cleaned everything up.
2020-05-27 19:59:03 -07:00
Max Schmitt
9dfe9348ac
feat: Request.postDataJSON ( #2368 )
2020-05-27 18:43:49 -07:00
Daniel Rosenwasser
4e86d39881
docs: recommend a dev install of Playwright in the docs. ( #2355 )
2020-05-26 10:24:48 -07:00
Dmitry Gozman
aae3f1e75d
feat(default context): support selected options for default context ( #2177 )
2020-05-21 15:13:16 -07:00