Skip to content

Commit

Permalink
chore: python trial run (microsoft#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelfeldman committed Jan 7, 2021
1 parent d99f34e commit e3f1cca
Show file tree
Hide file tree
Showing 570 changed files with 14,887 additions and 2,737 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,11 @@ node_modules
.env.development.local
.env.test.local
.env.production.local

# build
/docs
/sidebars.js
/versioned_docs
/versioned_sidebars
/versions.json
/docusaurus.config.js
129 changes: 0 additions & 129 deletions docs/api/class-chromiumbrowsercontext.md

This file was deleted.

70 changes: 35 additions & 35 deletions docs/actionability.md → nodejs/docs/actionability.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Playwright does a range of actionability checks on the elements before performin

Playwright waits until all the relevant actionability checks pass before performing an action. This means that action will fail with the `TimeoutError` if checks do not pass within the specified `timeout`.

Some actions like [page.click(selector[, options])](api/class-page.md#pageclickselector-options) support `force` option that disables non-essential actionability checks, for example passing truthy `force` to [page.click(selector[, options])](api/class-page.md#pageclickselector-options) method will not check that the target element actually receives click events.
Some actions like [page.click(selector[, options])](./api/class-page.md#pageclickselector-options) support `force` option that disables non-essential actionability checks, for example passing truthy `force` to [page.click(selector[, options])](./api/class-page.md#pageclickselector-options) method will not check that the target element actually receives click events.

| Action | [Attached] | [Visible] | [Stable] | [Receiving Events] | [Enabled] | [Editable] |
| :- | :-: | :-: | :-: | :-: | :-: | :-: |
Expand Down Expand Up @@ -58,11 +58,11 @@ Element is considered receiving pointer events when it is the hit target of the

Element is considered attached when it is [connected](https://developer.mozilla.org/en-US/docs/Web/API/Node/isConnected) to a Document or a ShadowRoot.

Attached check differs between selector-based and handle-based actions, like [page.click(selector[, options])](api/class-page.md#pageclickselector-options) as opposite to [elementHandle.click([options])](api/class-elementhandle.md#elementhandleclickoptions):
Attached check differs between selector-based and handle-based actions, like [page.click(selector[, options])](./api/class-page.md#pageclickselector-options) as opposite to [elementHandle.click([options])](./api/class-elementhandle.md#elementhandleclickoptions):
- For selector-based actions, Playwright first waits for an element matching `selector` to be attached to the DOM, and then checks that element is still attached before performing the action. If element was detached, the action is retried from the start.
- For handle-based actions, Playwright throws if the element is not attached.

For example, consider a scenario where Playwright will click `Sign Up` button regardless of when the [page.click(selector[, options])](api/class-page.md#pageclickselector-options) call was made:
For example, consider a scenario where Playwright will click `Sign Up` button regardless of when the [page.click(selector[, options])](./api/class-page.md#pageclickselector-options) call was made:
- page is checking that user name is unique and `Sign Up` button is disabled;
- after checking with the server, the disabled `Sign Up` button is replaced with another one that is now enabled.

Expand All @@ -73,38 +73,38 @@ For example, consider a scenario where Playwright will click `Sign Up` button re
[Receiving Events]: #receiving-events "Receiving Events"
[Attached]: #attached "Attached"

[Playwright]: api/class-playwright.md "Playwright"
[Browser]: api/class-browser.md "Browser"
[BrowserContext]: api/class-browsercontext.md "BrowserContext"
[Page]: api/class-page.md "Page"
[Frame]: api/class-frame.md "Frame"
[ElementHandle]: api/class-elementhandle.md "ElementHandle"
[JSHandle]: api/class-jshandle.md "JSHandle"
[ConsoleMessage]: api/class-consolemessage.md "ConsoleMessage"
[Dialog]: api/class-dialog.md "Dialog"
[Download]: api/class-download.md "Download"
[Video]: api/class-video.md "Video"
[FileChooser]: api/class-filechooser.md "FileChooser"
[Keyboard]: api/class-keyboard.md "Keyboard"
[Mouse]: api/class-mouse.md "Mouse"
[Touchscreen]: api/class-touchscreen.md "Touchscreen"
[Request]: api/class-request.md "Request"
[Response]: api/class-response.md "Response"
[Selectors]: api/class-selectors.md "Selectors"
[Route]: api/class-route.md "Route"
[WebSocket]: api/class-websocket.md "WebSocket"
[TimeoutError]: api/class-timeouterror.md "TimeoutError"
[Accessibility]: api/class-accessibility.md "Accessibility"
[Worker]: api/class-worker.md "Worker"
[BrowserServer]: api/class-browserserver.md "BrowserServer"
[BrowserType]: api/class-browsertype.md "BrowserType"
[Logger]: api/class-logger.md "Logger"
[ChromiumBrowser]: api/class-chromiumbrowser.md "ChromiumBrowser"
[ChromiumBrowserContext]: api/class-chromiumbrowsercontext.md "ChromiumBrowserContext"
[ChromiumCoverage]: api/class-chromiumcoverage.md "ChromiumCoverage"
[CDPSession]: api/class-cdpsession.md "CDPSession"
[FirefoxBrowser]: api/class-firefoxbrowser.md "FirefoxBrowser"
[WebKitBrowser]: api/class-webkitbrowser.md "WebKitBrowser"
[Playwright]: ./api/class-playwright.md "Playwright"
[Browser]: ./api/class-browser.md "Browser"
[BrowserContext]: ./api/class-browsercontext.md "BrowserContext"
[Page]: ./api/class-page.md "Page"
[Frame]: ./api/class-frame.md "Frame"
[ElementHandle]: ./api/class-elementhandle.md "ElementHandle"
[JSHandle]: ./api/class-jshandle.md "JSHandle"
[ConsoleMessage]: ./api/class-consolemessage.md "ConsoleMessage"
[Dialog]: ./api/class-dialog.md "Dialog"
[Download]: ./api/class-download.md "Download"
[Video]: ./api/class-video.md "Video"
[FileChooser]: ./api/class-filechooser.md "FileChooser"
[Keyboard]: ./api/class-keyboard.md "Keyboard"
[Mouse]: ./api/class-mouse.md "Mouse"
[Touchscreen]: ./api/class-touchscreen.md "Touchscreen"
[Request]: ./api/class-request.md "Request"
[Response]: ./api/class-response.md "Response"
[Selectors]: ./api/class-selectors.md "Selectors"
[Route]: ./api/class-route.md "Route"
[WebSocket]: ./api/class-websocket.md "WebSocket"
[TimeoutError]: ./api/class-timeouterror.md "TimeoutError"
[Accessibility]: ./api/class-accessibility.md "Accessibility"
[Worker]: ./api/class-worker.md "Worker"
[BrowserServer]: ./api/class-browserserver.md "BrowserServer"
[BrowserType]: ./api/class-browsertype.md "BrowserType"
[Logger]: ./api/class-logger.md "Logger"
[ChromiumBrowser]: ./api/class-chromiumbrowser.md "ChromiumBrowser"
[ChromiumBrowserContext]: ./api/class-chromiumbrowsercontext.md "ChromiumBrowserContext"
[ChromiumCoverage]: ./api/class-chromiumcoverage.md "ChromiumCoverage"
[CDPSession]: ./api/class-cdpsession.md "CDPSession"
[FirefoxBrowser]: ./api/class-firefoxbrowser.md "FirefoxBrowser"
[WebKitBrowser]: ./api/class-webkitbrowser.md "WebKitBrowser"
[Array]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array "Array"
[Buffer]: https://nodejs.org/api/buffer.html#buffer_class_buffer "Buffer"
[ChildProcess]: https://nodejs.org/api/child_process.html "ChildProcess"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Blink - Chromium's rendering engine - has a concept of "accessibility tree", whi
Most of the accessibility tree gets filtered out when converting from Blink AX Tree to Platform-specific AX-Tree or by assistive technologies themselves. By default, Playwright tries to approximate this filtering, exposing only the "interesting" nodes of the tree.


- [accessibility.snapshot([options])](api/class-accessibility.md#accessibilitysnapshotoptions)
- [accessibility.snapshot([options])](./api/class-accessibility.md#accessibilitysnapshotoptions)

## accessibility.snapshot([options])
- `options` <[Object]>
Expand Down Expand Up @@ -77,38 +77,38 @@ function findFocusedNode(node) {
```


[Playwright]: api/class-playwright.md "Playwright"
[Browser]: api/class-browser.md "Browser"
[BrowserContext]: api/class-browsercontext.md "BrowserContext"
[Page]: api/class-page.md "Page"
[Frame]: api/class-frame.md "Frame"
[ElementHandle]: api/class-elementhandle.md "ElementHandle"
[JSHandle]: api/class-jshandle.md "JSHandle"
[ConsoleMessage]: api/class-consolemessage.md "ConsoleMessage"
[Dialog]: api/class-dialog.md "Dialog"
[Download]: api/class-download.md "Download"
[Video]: api/class-video.md "Video"
[FileChooser]: api/class-filechooser.md "FileChooser"
[Keyboard]: api/class-keyboard.md "Keyboard"
[Mouse]: api/class-mouse.md "Mouse"
[Touchscreen]: api/class-touchscreen.md "Touchscreen"
[Request]: api/class-request.md "Request"
[Response]: api/class-response.md "Response"
[Selectors]: api/class-selectors.md "Selectors"
[Route]: api/class-route.md "Route"
[WebSocket]: api/class-websocket.md "WebSocket"
[TimeoutError]: api/class-timeouterror.md "TimeoutError"
[Accessibility]: api/class-accessibility.md "Accessibility"
[Worker]: api/class-worker.md "Worker"
[BrowserServer]: api/class-browserserver.md "BrowserServer"
[BrowserType]: api/class-browsertype.md "BrowserType"
[Logger]: api/class-logger.md "Logger"
[ChromiumBrowser]: api/class-chromiumbrowser.md "ChromiumBrowser"
[ChromiumBrowserContext]: api/class-chromiumbrowsercontext.md "ChromiumBrowserContext"
[ChromiumCoverage]: api/class-chromiumcoverage.md "ChromiumCoverage"
[CDPSession]: api/class-cdpsession.md "CDPSession"
[FirefoxBrowser]: api/class-firefoxbrowser.md "FirefoxBrowser"
[WebKitBrowser]: api/class-webkitbrowser.md "WebKitBrowser"
[Playwright]: ./api/class-playwright.md "Playwright"
[Browser]: ./api/class-browser.md "Browser"
[BrowserContext]: ./api/class-browsercontext.md "BrowserContext"
[Page]: ./api/class-page.md "Page"
[Frame]: ./api/class-frame.md "Frame"
[ElementHandle]: ./api/class-elementhandle.md "ElementHandle"
[JSHandle]: ./api/class-jshandle.md "JSHandle"
[ConsoleMessage]: ./api/class-consolemessage.md "ConsoleMessage"
[Dialog]: ./api/class-dialog.md "Dialog"
[Download]: ./api/class-download.md "Download"
[Video]: ./api/class-video.md "Video"
[FileChooser]: ./api/class-filechooser.md "FileChooser"
[Keyboard]: ./api/class-keyboard.md "Keyboard"
[Mouse]: ./api/class-mouse.md "Mouse"
[Touchscreen]: ./api/class-touchscreen.md "Touchscreen"
[Request]: ./api/class-request.md "Request"
[Response]: ./api/class-response.md "Response"
[Selectors]: ./api/class-selectors.md "Selectors"
[Route]: ./api/class-route.md "Route"
[WebSocket]: ./api/class-websocket.md "WebSocket"
[TimeoutError]: ./api/class-timeouterror.md "TimeoutError"
[Accessibility]: ./api/class-accessibility.md "Accessibility"
[Worker]: ./api/class-worker.md "Worker"
[BrowserServer]: ./api/class-browserserver.md "BrowserServer"
[BrowserType]: ./api/class-browsertype.md "BrowserType"
[Logger]: ./api/class-logger.md "Logger"
[ChromiumBrowser]: ./api/class-chromiumbrowser.md "ChromiumBrowser"
[ChromiumBrowserContext]: ./api/class-chromiumbrowsercontext.md "ChromiumBrowserContext"
[ChromiumCoverage]: ./api/class-chromiumcoverage.md "ChromiumCoverage"
[CDPSession]: ./api/class-cdpsession.md "CDPSession"
[FirefoxBrowser]: ./api/class-firefoxbrowser.md "FirefoxBrowser"
[WebKitBrowser]: ./api/class-webkitbrowser.md "WebKitBrowser"
[Array]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array "Array"
[Buffer]: https://nodejs.org/api/buffer.html#buffer_class_buffer "Buffer"
[ChildProcess]: https://nodejs.org/api/child_process.html "ChildProcess"
Expand Down

0 comments on commit e3f1cca

Please sign in to comment.