docs: make all links relative (#4926)

This commit is contained in:
Pavel Feldman 2021-01-06 20:02:51 -08:00 committed by GitHub
parent 0a2fe62cb7
commit 913f85249f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 451 additions and 579 deletions

View file

@ -11,26 +11,26 @@ Some actions like [`method: Page.click`] support `force` option that disables no
| Action | [Attached] | [Visible] | [Stable] | [Receiving Events] | [Enabled] | [Editable] | | Action | [Attached] | [Visible] | [Stable] | [Receiving Events] | [Enabled] | [Editable] |
| :- | :-: | :-: | :-: | :-: | :-: | :-: | | :- | :-: | :-: | :-: | :-: | :-: | :-: |
| [`method: ElementHandle.check`] | Yes | Yes | Yes | Yes | Yes | - | | check | Yes | Yes | Yes | Yes | Yes | - |
| [`method: ElementHandle.click`] | Yes | Yes | Yes | Yes | Yes | - | | click | Yes | Yes | Yes | Yes | Yes | - |
| [`method: ElementHandle.dblclick`] | Yes | Yes | Yes | Yes | Yes | - | | dblclick | Yes | Yes | Yes | Yes | Yes | - |
| [`method: ElementHandle.tap`] | Yes | Yes | Yes | Yes | Yes | - | | tap | Yes | Yes | Yes | Yes | Yes | - |
| [`method: ElementHandle.uncheck`] | Yes | Yes | Yes | Yes | Yes | - | | uncheck | Yes | Yes | Yes | Yes | Yes | - |
| [`method: ElementHandle.hover`] | Yes | Yes | Yes | Yes | - | - | | hover | Yes | Yes | Yes | Yes | - | - |
| [`method: ElementHandle.scrollIntoViewIfNeeded`] | Yes | Yes | Yes | - | - | - | | scrollIntoViewIfNeeded | Yes | Yes | Yes | - | - | - |
| [`method: ElementHandle.screenshot`] | Yes | Yes | Yes | - | - | - | | screenshot | Yes | Yes | Yes | - | - | - |
| [`method: ElementHandle.fill`] | Yes | Yes | - | - | Yes | Yes | | fill | Yes | Yes | - | - | Yes | Yes |
| [`method: ElementHandle.selectText`] | Yes | Yes | - | - | - | - | | selectText | Yes | Yes | - | - | - | - |
| [`method: ElementHandle.getAttribute`] | Yes | - | - | - | - | - | | dispatchEvent | Yes | - | - | - | - | - |
| [`method: ElementHandle.dispatchEvent`] | Yes | - | - | - | - | - | | focus | Yes | - | - | - | - | - |
| [`method: ElementHandle.focus`] | Yes | - | - | - | - | - | | getAttribute | Yes | - | - | - | - | - |
| [`method: ElementHandle.innerText`] | Yes | - | - | - | - | - | | innerText | Yes | - | - | - | - | - |
| [`method: ElementHandle.innerHTML`] | Yes | - | - | - | - | - | | innerHTML | Yes | - | - | - | - | - |
| [`method: ElementHandle.press`] | Yes | - | - | - | - | - | | press | Yes | - | - | - | - | - |
| [`method: ElementHandle.setInputFiles`] | Yes | - | - | - | - | - | | setInputFiles | Yes | - | - | - | - | - |
| [`method: ElementHandle.selectOption`] | Yes | - | - | - | - | - | | selectOption | Yes | - | - | - | - | - |
| [`method: ElementHandle.textContent`] | Yes | - | - | - | - | - | | textContent | Yes | - | - | - | - | - |
| [`method: ElementHandle.type`] | Yes | - | - | - | - | - | | type | Yes | - | - | - | - | - |
<br/> <br/>

View file

@ -109,7 +109,7 @@ composite selectors. To use this:
### Evaluate Source Maps ### Evaluate Source Maps
PWDEBUG also enables source maps for [`page.evaluate` executions](core-concepts.md#evaluation). PWDEBUG also enables source maps for [`page.evaluate` executions](./core-concepts.md#evaluation).
This improves the debugging experience for JavaScript executions in the page context. This improves the debugging experience for JavaScript executions in the page context.
<a href="https://user-images.githubusercontent.com/284612/86857568-a6c63100-c073-11ea-82a4-bfd531a4ec87.png"><img src="https://user-images.githubusercontent.com/284612/86857568-a6c63100-c073-11ea-82a4-bfd531a4ec87.png" width="500" alt="Highlight selectors"></img></a> <a href="https://user-images.githubusercontent.com/284612/86857568-a6c63100-c073-11ea-82a4-bfd531a4ec87.png"><img src="https://user-images.githubusercontent.com/284612/86857568-a6c63100-c073-11ea-82a4-bfd531a4ec87.png" width="500" alt="Highlight selectors"></img></a>

View file

@ -10,7 +10,7 @@ tabs in a browser window.
## Multiple contexts ## Multiple contexts
[Browser contexts](core-concepts.md#browser-contexts) are isolated environments [Browser contexts](./core-concepts.md#browser-contexts) are isolated environments
on a single browser instance. Playwright can create multiple browser contexts on a single browser instance. Playwright can create multiple browser contexts
within a single scenario. This is useful when you want to test for within a single scenario. This is useful when you want to test for
multi-user functionality, like chat. multi-user functionality, like chat.

View file

@ -7,7 +7,7 @@ title: "Verification"
## Videos ## Videos
Playwright can record videos for all pages in a [browser context](core-concepts.md#browser-contexts). Videos are saved upon context closure, so make sure to await [`method: BrowserContext.close`]. Playwright can record videos for all pages in a [browser context](./core-concepts.md#browser-contexts). Videos are saved upon context closure, so make sure to await [`method: BrowserContext.close`].
```js ```js
// With browser.newContext() // With browser.newContext()

View file

@ -21,12 +21,12 @@ Playwright enables fast, reliable and capable automation across all modern brows
* **Timeout-free automation**. Playwright receives browser signals, like network requests, page navigations and page load events to eliminate the need for sleep timeouts that cause flakiness. * **Timeout-free automation**. Playwright receives browser signals, like network requests, page navigations and page load events to eliminate the need for sleep timeouts that cause flakiness.
* **Lean parallelization with browser contexts**. Reuse a single browser instance for multiple parallelized, isolated execution environments with [browser contexts](core-concepts.md). * **Lean parallelization with browser contexts**. Reuse a single browser instance for multiple parallelized, isolated execution environments with [browser contexts](./core-concepts.md).
* **Resilient element selectors**. Playwright can rely on user-facing strings, like text content and accessibility labels to [select elements](./selectors.md). These strings are more resilient than selectors tightly-coupled to the DOM structure. * **Resilient element selectors**. Playwright can rely on user-facing strings, like text content and accessibility labels to [select elements](./selectors.md). These strings are more resilient than selectors tightly-coupled to the DOM structure.
## Powerful automation capabilities ## Powerful automation capabilities
* **Multiple domains, pages and frames**. Playwright is an out-of-process automation driver that is not limited by the scope of in-page JavaScript execution and can automate scenarios with [multiple pages](multi-pages.md). * **Multiple domains, pages and frames**. Playwright is an out-of-process automation driver that is not limited by the scope of in-page JavaScript execution and can automate scenarios with [multiple pages](./multi-pages.md).
* **Powerful network control**. Playwright introduces context-wide [network interception](./network.md) to stub and mock network requests. * **Powerful network control**. Playwright introduces context-wide [network interception](./network.md) to stub and mock network requests.

954
types/types.d.ts vendored

File diff suppressed because it is too large Load diff

View file

@ -177,7 +177,6 @@ Documentation.Member = class {
this.args.set(arg.name, arg); this.args.set(arg.name, arg);
/** @type {!Documentation.Class} */ /** @type {!Documentation.Class} */
this.clazz = null; this.clazz = null;
this.signature = this._createSignature();
} }
clone() { clone() {
@ -227,29 +226,6 @@ Documentation.Member = class {
for (const arg of this.argsArray) for (const arg of this.argsArray)
arg.visit(visitor); arg.visit(visitor);
} }
_createSignature() {
const tokens = [];
let hasOptional = false;
for (const arg of this.argsArray) {
const optional = !arg.required;
if (tokens.length) {
if (optional && !hasOptional)
tokens.push(`[, ${arg.name}`);
else
tokens.push(`, ${arg.name}`);
} else {
if (optional && !hasOptional)
tokens.push(`[${arg.name}`);
else
tokens.push(`${arg.name}`);
}
hasOptional = hasOptional || optional;
}
if (hasOptional)
tokens.push(']');
return tokens.join('');
}
}; };
Documentation.Type = class { Documentation.Type = class {

View file

@ -52,7 +52,7 @@ let hadChanges = false;
if (clazz) if (clazz)
return `[${clazz.name}]`; return `[${clazz.name}]`;
if (member.kind === 'method') if (member.kind === 'method')
return createMemberLink(`${member.clazz.varName}.${member.name}(${member.signature})`); return createMemberLink(`${member.clazz.varName}.${member.name}()`);
if (member.kind === 'event') if (member.kind === 'event')
return createMemberLink(`${member.clazz.varName}.on('${member.name}')`); return createMemberLink(`${member.clazz.varName}.on('${member.name}')`);
if (member.kind === 'property') if (member.kind === 'property')