Commit graph

2220 commits

Author SHA1 Message Date
Yury Semikhatsky 7e7d3db96d
docs: update init script type for java and C# (#5449) 2021-02-12 14:16:38 -08:00
Yury Semikhatsky 55614c7cc8
docs: replace bool with boolean (#5431) 2021-02-12 09:19:41 -08:00
Yury Semikhatsky ccfb3c3a1e
docs: add callback description to waitForNavigation (#5433) 2021-02-12 09:15:18 -08:00
Yury Semikhatsky 7551c01a84
docs: remove devices property from c# and java (#5423) 2021-02-11 12:26:10 -08:00
Dmitry Gozman 99f8e1cf63
docs: document Android and friends (#5415)
These are experimental, currently available through `_android`.
2021-02-11 10:31:57 -08:00
Yury Semikhatsky 60e9216ebb
docs: change page error type to string (#5412) 2021-02-10 16:12:04 -08:00
Joel Einbinder dca70abbd3
feat(chromium): connect to a browser over cdp (#5207) 2021-02-10 14:00:02 -08:00
Yury Semikhatsky 7933cfc7df
docs: inline Location methods into ConsoleMessage in java (#5402) 2021-02-10 12:54:44 -08:00
Yury Semikhatsky 90dbe35df0
docs: exclude recordHar field from java (#5401) 2021-02-10 11:41:55 -08:00
Dmitry Gozman c12374ea07
feat(docs): improve link validation (#5394) 2021-02-10 07:13:14 -08:00
Dmitry Gozman 78ab2955f3
fix(isVisible): do not wait for the selector to be resolved (#5393) 2021-02-10 07:12:43 -08:00
Dmitry Gozman 4d4efccb3e
docs: add release notes doc (#5391) 2021-02-09 21:44:16 -08:00
Yury Semikhatsky 716bd4211d
docs: spread RecordHar options in java (#5390) 2021-02-09 17:33:28 -08:00
Yury Semikhatsky 152701a273
docs: rename viewport option to viewportSize in java, C# (#5383) 2021-02-09 16:50:32 -08:00
Yury Semikhatsky 3695dab1d5
docs: split RecordVideo object into dir and size options in java (#5389) 2021-02-09 16:44:50 -08:00
Yury Semikhatsky adeb2348cf
docs: change WebSocket.frame* event type to WebSocketFrame in java (#5384) 2021-02-09 12:11:48 -08:00
Dmitry Gozman b50c363bba
docs(selectors): add quick guide section (#5346) 2021-02-08 19:51:11 -08:00
Yury Semikhatsky ef9995e694
docs: make pdf options strings in java and C# (#5369) 2021-02-08 18:07:27 -08:00
Yury Semikhatsky 4bfdaa384b
docs: fix playwright.dev generation error (#5360) 2021-02-08 12:27:17 -08:00
Yury Semikhatsky f35acc258b
docs: improve enum naming (#5359) 2021-02-08 11:58:25 -08:00
Arjun Attam 48a295dcf7
docs(api): stock browsers for media codecs (#5352)
* docs(api): stock browsers for media codecs

* Update docs/src/api/class-browsertype.md

Co-authored-by: Max Schmitt <max@schmitt.mx>

* Update docs/src/api/class-browsertype.md

Co-authored-by: Max Schmitt <max@schmitt.mx>

Co-authored-by: Max Schmitt <max@schmitt.mx>
2021-02-08 18:50:11 +05:30
Dmitry Gozman f094f65ef3
docs: add section for custom setup codegen (#5339) 2021-02-06 14:57:01 -08:00
Yury Semikhatsky a1b3164864
docs: fix nested union handling (#5341) 2021-02-05 16:32:13 -08:00
Yury Semikhatsky d3cc1d7648
docs: add name for SameSiteEnum (#5340) 2021-02-05 16:13:48 -08:00
Yury Semikhatsky 4b74f5693c
docs: add enum aliases (#5335) 2021-02-05 15:28:48 -08:00
Yury Semikhatsky 494f0f63cc
docs: update route callback type for java (#5324) 2021-02-05 09:39:03 -08:00
Yury Semikhatsky 28e5975772
docs: define java specific waitFor* methods (#5315) 2021-02-04 21:15:14 -08:00
Anže Vodovnik ff06399afd
docs(csharp): events convention based naming fix for csharp (#5238)
* docs(gen): Updating events names to camelCase.
* docs(gen): updating generator to match new assumption for event names
* docs(gen): renaming references to events
2021-02-04 19:34:09 +01:00
Pavel Feldman fe2c529fda
docs: complete sentences with full stop (#5298) 2021-02-03 18:25:06 -08:00
Pavel Feldman 9841f6dbcb
chore: remove the 1.8.0a1 mentions (#5297) 2021-02-03 18:10:55 -08:00
Pavel Feldman 847bea2f83
chore: remove force_expr parameter from python api (#5295) 2021-02-03 16:39:08 -08:00
Pavel Feldman 34adc28ed3
feat(pause): make page.pause public (#5288) 2021-02-03 16:01:51 -08:00
Yury Semikhatsky c0480e5905
docs: skip Respone.json and Request.postDataJSON in Java (#5292) 2021-02-03 15:02:22 -08:00
Yury Semikhatsky 1c65b592d0
docs: use separate options for string and buffer body (#5291) 2021-02-03 14:56:17 -08:00
Yury Semikhatsky 080a9529b3
docs: rename Route.continue_ to Route.resume in java and C# (#5290) 2021-02-03 13:40:58 -08:00
Yury Semikhatsky 6c44a781c7
docs: make Request.failure return string by default (#5289) 2021-02-03 13:33:46 -08:00
Yury Semikhatsky a8425d33dd
docs: change Accessibility.snapshot type to string in java and c# (#5287) 2021-02-03 12:23:02 -08:00
Yury Semikhatsky eee2d02290
docs: change Accessibility.snapshot type to string in java and c# (#5286) 2021-02-03 12:19:25 -08:00
Dmitry Gozman 53ed35ef96
feat(dialogs): auto-dismiss dialogs when there are no listeners (#5269)
This makes dialogs disappear and prevents stalling.

Pros:
- No need to worry about dialogs for most users.
- Those that wait for a specific dialog still get to control it.

Cons:
- Those who use Playwright to show interactive browser will have
  to add an empty 'dialog' handler to prevent auto-dismiss.
  We do this in cli.
2021-02-03 10:34:45 -08:00
Yury Semikhatsky 4cd0d3e5da
docs: change StorageState type to string in java and C# (#5268) 2021-02-02 17:48:32 -08:00
Dmitry Gozman d96c547389
docs: note that user data dir is a parent of profile path (#5262)
Copied from https://chromium.googlesource.com/chromium/src/+/master/docs/user_data_dir.md#current-location
to help users that copy "Profile Path" to be used as user data dir.
2021-02-02 13:28:41 -08:00
Yury Semikhatsky e0f41bf1fd
docs: change default return type of Response.finished to string (#5261) 2021-02-02 12:18:05 -08:00
Yury Semikhatsky c51a1f96e5
docs: update type of env in the remaining places (#5254) 2021-02-02 10:57:22 -08:00
Yury Semikhatsky cee394d6e0
docs: split ignoreDefaultArgs into 2 options for java (#5251) 2021-02-02 10:46:36 -08:00
Yury Semikhatsky 5564b203d9
docs: mark ChromiumBrowserContext as js and python specific (#5255) 2021-02-02 10:21:27 -08:00
Yury Semikhatsky 198e403c14
docs: add missing java.md (#5245) 2021-02-01 12:05:01 -08:00
Pavel Feldman e0e38706e4 docs: fix Python snippet casing (2) 2021-02-01 11:47:03 -08:00
Pavel Feldman 174b6aa2da
docs: fix Python snippet casing (#5244) 2021-02-01 11:44:39 -08:00
Pavel Feldman 1db5ef24a8
docs: document electron api (#5229) 2021-02-01 11:43:26 -08:00
Yury Semikhatsky e71ef7949b
docs: add java traits to some methods (#5222) (#5243) 2021-02-01 11:13:13 -08:00
Pavel Feldman 82bb92f103 Revert "docs: add java traits to some methods (#5222)"
Breaks playwright.dev
2021-01-30 22:15:56 -08:00
Yury Semikhatsky 9c4668685d
docs: add java traits to some methods (#5222) 2021-01-29 19:15:25 -08:00
Yury Semikhatsky a1d875ed97
docs: make inline refs us parameter name instead of its alias (#5219) 2021-01-29 16:02:17 -08:00
Anže Vodovnik dbcdf9dcd7
chore(docs): aliases for dotnet/chsarp docs. (#5162)
Co-authored-by: Yury Semikhatsky <yurys@chromium.org>
2021-01-29 11:08:22 -08:00
Yury Semikhatsky 21041bc331
docs: support argument overrides (#5200) 2021-01-28 17:51:41 -08:00
Pavel Feldman 8581e3e950
fix(docs): a couple of broken links (#5211) 2021-01-28 15:15:29 -08:00
Pavel Feldman ff6b2b1dd4
chore: make emulate media params be options (#5172) 2021-01-27 14:19:37 -08:00
Pavel Feldman 35baf335d8 Revert "docs: update langs fields to include java (#5161)"
iThis broke Python docs.
2021-01-27 11:31:34 -08:00
Yury Semikhatsky d0ab0bd8f2
docs: update langs fields to include java (#5161) 2021-01-27 11:11:05 -08:00
Yury Semikhatsky 22fb7448c3
docs: share proxy documentation, exclude cdp session from java (#5150) 2021-01-25 16:53:47 -08:00
Dmitry Gozman 894abbfe28
feat(selectors): has-text pseudo-class (#5120)
This pseudo-class matches approximately when
`element.textContent.includes(textToSearchFor)`.
2021-01-25 14:19:07 -08:00
Dmitry Gozman d78d337e29
feat(fill): make fill work when targeting elements inside the label (#5143) 2021-01-25 13:40:19 -08:00
Yury Semikhatsky a4eb121399
fix: add parameter to close/crash/disconnected etc events (#5098) 2021-01-22 09:58:31 -08:00
Pavel Feldman dcf041a266
docs: update ci docs to better help Python users (#5095) 2021-01-21 16:41:42 -08:00
Dmitry Gozman 7a4b94e66c
feat(selectors): nth-match selector (#5081)
Introduces :nth-match(ul > li, 3) css extension, with one-based index.
2021-01-21 16:39:49 -08:00
Pavel Feldman 8f06761ba1
docs: link to the new docs from source (#5092) 2021-01-21 14:35:20 -08:00
Arjun Attam 043ed975c1
docs: update limitations to reflect java bindings (#5086) 2021-01-21 18:42:21 +05:30
Pavel Feldman 45c33ae02f
docs: fix some 1.8 docs nits (#5078) 2021-01-20 16:06:26 -08:00
Pavel Feldman f10f170946
docs: add file chooser example, remove links to js samples (#5054) 2021-01-20 08:12:39 -08:00
Yury Semikhatsky 615954b285
fix(dom): make selectOption wait for options (#5036) 2021-01-19 11:27:05 -08:00
Dmitry Gozman 19acf998da
docs: minor updates to selectors.md (#5055) 2021-01-19 10:48:18 -08:00
Dmitry Gozman 0586c2554f feat(text selector): normalize whitespace for quoted match (#5049)
This changes quoted text selector like `text="Foo Bar"` to perform
normalized whitespace match.

Most of the time users want to match some string visible on the page,
and that always means normalized whitespace.

We keep the case sensitivity and full-string vs substring difference
between quoted and unquoted matches.
2021-01-19 09:30:34 -08:00
Pavel Feldman 9e3bd78649
docs: update selectors doc to be more like a guide (#5048) 2021-01-18 20:59:16 -08:00
Pavel Feldman 01fb3a6045
docs: extract handles, screenshots, videos docs (#5045) 2021-01-17 21:09:40 -08:00
Dmitry Gozman 17e953c2d8
chore: make generate_types not depend on the source (#5040)
The only dependency is a list of devices that we
can turn into a js file.
2021-01-17 12:09:20 -08:00
Pavel Feldman 1fc02e8823
docs: add dialogs and downloads docs (#5042) 2021-01-16 14:37:13 -08:00
Dmitry Gozman 2db02c9a05
docs(python): update installation docs (#5039) 2021-01-16 06:42:40 -08:00
Pavel Feldman e67d563798
docs: don't use lang suffix in the intro url (#5035) 2021-01-15 17:59:19 -08:00
Pavel Feldman 41e394bc22
docs: allow overriding return types (#5031) 2021-01-15 16:01:41 -08:00
Pavel Feldman 6e94c11034
docs: prepare docs for tabbed snippets (#5026) 2021-01-15 12:30:10 -08:00
Pavel Feldman 56ba0b3cd9
docs: brush up some python docs (#5027) 2021-01-15 09:12:47 -08:00
Pavel Feldman 7701176b0a
docs: allow lang-specific sh snippets (#5024) 2021-01-14 18:19:02 -08:00
Dmitry Gozman e85f278869
docs: more python docs and snippets (#5021) 2021-01-14 15:01:39 -08:00
Pavel Feldman 5dcb7bb290
docs: declare expect_navigation as returning Response (#5020) 2021-01-14 14:40:19 -08:00
Pavel Feldman 1648d23551
docs: add python snippets for api classes (follow up) (#5018) 2021-01-14 11:09:44 -08:00
Pavel Feldman 8354a91d0e
docs: add python snippets for api classes (#5011) 2021-01-14 07:48:56 -08:00
Pavel Feldman 5408e26e02
docs: add python snippets for class Page (#5010) 2021-01-13 21:03:35 -08:00
Yury Semikhatsky df53cb2f83
docs: fix inline code quoting (#4992) 2021-01-13 08:56:57 -08:00
Pavel Feldman cac119f3bf
docs: python api review (#4986) 2021-01-12 12:14:27 -08:00
Dmitry Gozman d62b661cfa
docs: rename proximity selectors to position selectors (#4975) 2021-01-11 18:25:41 -08:00
Pavel Feldman cb6e4a6657
chore: update snippets in python docs (#4976) 2021-01-11 17:04:24 -08:00
Pavel Feldman 7a8214cd95
chore: prepare non-api docs for non-js variants (#4969) 2021-01-11 09:34:49 -08:00
Pavel Feldman 4dbbb47583
docs: document Python's expect_event methods (#4963) 2021-01-10 21:00:52 -08:00
Pavel Feldman e67d89747a
chore: update docs to cover python specifics (#4960) 2021-01-10 18:18:35 -08:00
Dmitry Gozman 5a2cfdbd47
api: add isChecked method (#4953)
This adds `{Page,Frame}.isChecked(selector)` and `ElementHandle.isChecked()` methods.

Useful to do assertions in tests:
```js
await page.click('text="Add TODO"');
expect(await page.isChecked('.item-done')).toBe(false);
```
2021-01-08 17:36:17 -08:00
Pavel Feldman 3b617b3709
docs: validate member links (#4955) 2021-01-08 16:36:52 -08:00
Pavel Feldman b7e0b1b393
docs: annotate evaluate(pageFunction) js-specific (#4954) 2021-01-08 16:17:54 -08:00
Pavel Feldman 114d586f07
chore: add python aliases (#4949) 2021-01-08 15:00:14 -08:00
Dmitry Gozman 3f904056ee
api: add isVisible, isHidden, isEnabled, isDisabled and isEditable (#4915)
These methods are useful for verification in tests, e.g.
```js
expect(await page.isEnabled(':text("Remove All")')).toBe(false);
await page.click(':text("Add Item")');
expect(await page.isVisible('.item:text("new item")')).toBe(true);
expect(await page.isEnabled(':text("Remove All")')).toBe(true);
```
2021-01-08 12:27:54 -08:00
Dmitry Gozman 498f9a52c6
docs: update authentication guide to use storageState() api (#4948) 2021-01-08 12:24:10 -08:00
Dmitry Gozman d08cbc33a7
docs: brush up selector docs (#4939)
docs: brush up selector docs

- Remove duplication
- Move extensions block to ChromiumBrowser
- Remove accidental ":xpath" extension from css selectors
- Document :has and :is extensions
2021-01-08 10:59:24 -08:00
Pavel Feldman 97de9209a6
docs: move links into playwright.dev (#4947) 2021-01-08 09:12:54 -08:00
Max Schmitt 77bfcd2c74
chore: add some Python language snippets (#4933) 2021-01-08 08:39:33 -08:00
Ali Naqvi 07cb5f71e3
docs: Added Crystal port to showcase (#4945) 2021-01-08 06:04:39 -08:00
Dmitry Gozman 2072c61461
docs: add Java to the list of language ports (#4940) 2021-01-08 06:02:54 -08:00
Pavel Feldman 15c0a29526
docs: split nodejs and python links (#4942) 2021-01-07 23:37:53 -08:00
Pavel Feldman 54c06a1b45
chore: mark methods as js-only, add python-specific methods (#4938) 2021-01-07 16:12:25 -08:00
Pavel Feldman e56832b646
chore: language-specific members api (#4936) 2021-01-07 15:00:04 -08:00
Dmitry Gozman 8d649949c0
docs: move Go port to showcase (#4934)
playwright-go is an unofficial port, so we put it to a new section in showcase.
2021-01-07 14:54:09 -08:00
Dmitry Gozman eb9ea20511
feat(selectors): proximity selectors (#4923) 2021-01-07 14:12:59 -08:00
Pavel Feldman bdf12e32e4
docs: split api-body into classes (#4931) 2021-01-07 11:46:05 -08:00
Pavel Feldman 4cd989c653
docs: introduce deprecation annotation and any type (#4930) 2021-01-07 11:11:40 -08:00
Pavel Feldman 913f85249f
docs: make all links relative (#4926) 2021-01-06 20:02:51 -08:00
Pavel Feldman 2311c282d6
docs: pref docs to be language-specific (#4916) 2021-01-06 11:59:29 -08:00
Pavel Feldman b6cd385a67
docs: mark some paths as such (#4896) 2021-01-05 17:05:43 -08:00
Dmitry Gozman b00559bd53
docs: add save/load storage to cli docs (#4899) 2021-01-05 13:40:42 -08:00
Yury Semikhatsky 0f8d7ec0a6
docs: improve waitForElementState documentation (#4883) 2021-01-05 10:56:02 -08:00
Pavel Feldman 4996eacd5b
docs: split numbers into integers and floats (#4887) 2021-01-05 09:42:49 -08:00
Pavel Feldman 31ffeb32e3
doc: further align docs w/ playwright.dev (2) (#4871) 2021-01-04 13:50:29 -08:00
Pavel Feldman ae935a43d9
doc: further align docs w/ playwright.dev (#4866) 2021-01-03 08:47:29 -08:00