docs: make all links relative (#4926)
This commit is contained in:
parent
0a2fe62cb7
commit
913f85249f
|
|
@ -11,26 +11,26 @@ Some actions like [`method: Page.click`] support `force` option that disables no
|
|||
|
||||
| Action | [Attached] | [Visible] | [Stable] | [Receiving Events] | [Enabled] | [Editable] |
|
||||
| :- | :-: | :-: | :-: | :-: | :-: | :-: |
|
||||
| [`method: ElementHandle.check`] | Yes | Yes | Yes | Yes | Yes | - |
|
||||
| [`method: ElementHandle.click`] | Yes | Yes | Yes | Yes | Yes | - |
|
||||
| [`method: ElementHandle.dblclick`] | Yes | Yes | Yes | Yes | Yes | - |
|
||||
| [`method: ElementHandle.tap`] | Yes | Yes | Yes | Yes | Yes | - |
|
||||
| [`method: ElementHandle.uncheck`] | Yes | Yes | Yes | Yes | Yes | - |
|
||||
| [`method: ElementHandle.hover`] | Yes | Yes | Yes | Yes | - | - |
|
||||
| [`method: ElementHandle.scrollIntoViewIfNeeded`] | Yes | Yes | Yes | - | - | - |
|
||||
| [`method: ElementHandle.screenshot`] | Yes | Yes | Yes | - | - | - |
|
||||
| [`method: ElementHandle.fill`] | Yes | Yes | - | - | Yes | Yes |
|
||||
| [`method: ElementHandle.selectText`] | Yes | Yes | - | - | - | - |
|
||||
| [`method: ElementHandle.getAttribute`] | Yes | - | - | - | - | - |
|
||||
| [`method: ElementHandle.dispatchEvent`] | Yes | - | - | - | - | - |
|
||||
| [`method: ElementHandle.focus`] | Yes | - | - | - | - | - |
|
||||
| [`method: ElementHandle.innerText`] | Yes | - | - | - | - | - |
|
||||
| [`method: ElementHandle.innerHTML`] | Yes | - | - | - | - | - |
|
||||
| [`method: ElementHandle.press`] | Yes | - | - | - | - | - |
|
||||
| [`method: ElementHandle.setInputFiles`] | Yes | - | - | - | - | - |
|
||||
| [`method: ElementHandle.selectOption`] | Yes | - | - | - | - | - |
|
||||
| [`method: ElementHandle.textContent`] | Yes | - | - | - | - | - |
|
||||
| [`method: ElementHandle.type`] | Yes | - | - | - | - | - |
|
||||
| check | Yes | Yes | Yes | Yes | Yes | - |
|
||||
| click | Yes | Yes | Yes | Yes | Yes | - |
|
||||
| dblclick | Yes | Yes | Yes | Yes | Yes | - |
|
||||
| tap | Yes | Yes | Yes | Yes | Yes | - |
|
||||
| uncheck | Yes | Yes | Yes | Yes | Yes | - |
|
||||
| hover | Yes | Yes | Yes | Yes | - | - |
|
||||
| scrollIntoViewIfNeeded | Yes | Yes | Yes | - | - | - |
|
||||
| screenshot | Yes | Yes | Yes | - | - | - |
|
||||
| fill | Yes | Yes | - | - | Yes | Yes |
|
||||
| selectText | Yes | Yes | - | - | - | - |
|
||||
| dispatchEvent | Yes | - | - | - | - | - |
|
||||
| focus | Yes | - | - | - | - | - |
|
||||
| getAttribute | Yes | - | - | - | - | - |
|
||||
| innerText | Yes | - | - | - | - | - |
|
||||
| innerHTML | Yes | - | - | - | - | - |
|
||||
| press | Yes | - | - | - | - | - |
|
||||
| setInputFiles | Yes | - | - | - | - | - |
|
||||
| selectOption | Yes | - | - | - | - | - |
|
||||
| textContent | Yes | - | - | - | - | - |
|
||||
| type | Yes | - | - | - | - | - |
|
||||
|
||||
<br/>
|
||||
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@ composite selectors. To use this:
|
|||
|
||||
### 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.
|
||||
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ tabs in a browser window.
|
|||
|
||||
## 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
|
||||
within a single scenario. This is useful when you want to test for
|
||||
multi-user functionality, like chat.
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ title: "Verification"
|
|||
|
||||
## 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
|
||||
// With browser.newContext()
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
* **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.
|
||||
|
||||
## 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.
|
||||
|
||||
|
|
|
|||
954
types/types.d.ts
vendored
954
types/types.d.ts
vendored
File diff suppressed because it is too large
Load diff
|
|
@ -177,7 +177,6 @@ Documentation.Member = class {
|
|||
this.args.set(arg.name, arg);
|
||||
/** @type {!Documentation.Class} */
|
||||
this.clazz = null;
|
||||
this.signature = this._createSignature();
|
||||
}
|
||||
|
||||
clone() {
|
||||
|
|
@ -227,29 +226,6 @@ Documentation.Member = class {
|
|||
for (const arg of this.argsArray)
|
||||
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 {
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ let hadChanges = false;
|
|||
if (clazz)
|
||||
return `[${clazz.name}]`;
|
||||
if (member.kind === 'method')
|
||||
return createMemberLink(`${member.clazz.varName}.${member.name}(${member.signature})`);
|
||||
return createMemberLink(`${member.clazz.varName}.${member.name}(…)`);
|
||||
if (member.kind === 'event')
|
||||
return createMemberLink(`${member.clazz.varName}.on('${member.name}')`);
|
||||
if (member.kind === 'property')
|
||||
|
|
|
|||
Loading…
Reference in a new issue