docs: strictSelectors does not affect Locators (#19414)
Fixes https://github.com/microsoft/playwright/issues/19398
This commit is contained in:
parent
539893402e
commit
0cb1e97528
|
|
@ -677,8 +677,9 @@ contexts override the proxy, global proxy will be never used and can be any stri
|
||||||
## context-option-strict
|
## context-option-strict
|
||||||
- `strictSelectors` <[boolean]>
|
- `strictSelectors` <[boolean]>
|
||||||
|
|
||||||
If specified, enables strict selectors mode for this context. In the strict selectors mode all operations
|
If set to true, enables strict selectors mode for this context. In the strict selectors mode all operations
|
||||||
on selectors that imply single target DOM element will throw when more than one element matches the selector.
|
on selectors that imply single target DOM element will throw when more than one element matches the selector.
|
||||||
|
This option does not affect any Locator APIs (Locators are always strict).
|
||||||
See [Locator] to learn more about the strict mode.
|
See [Locator] to learn more about the strict mode.
|
||||||
|
|
||||||
## context-option-service-worker-policy
|
## context-option-service-worker-policy
|
||||||
|
|
|
||||||
28
packages/playwright-core/types/types.d.ts
vendored
28
packages/playwright-core/types/types.d.ts
vendored
|
|
@ -11830,9 +11830,10 @@ export interface BrowserType<Unused = {}> {
|
||||||
slowMo?: number;
|
slowMo?: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* If specified, enables strict selectors mode for this context. In the strict selectors mode all operations on
|
* If set to true, enables strict selectors mode for this context. In the strict selectors mode all operations on
|
||||||
* selectors that imply single target DOM element will throw when more than one element matches the selector. See
|
* selectors that imply single target DOM element will throw when more than one element matches the selector. This
|
||||||
* [Locator] to learn more about the strict mode.
|
* option does not affect any Locator APIs (Locators are always strict). See [Locator] to learn more about the strict
|
||||||
|
* mode.
|
||||||
*/
|
*/
|
||||||
strictSelectors?: boolean;
|
strictSelectors?: boolean;
|
||||||
|
|
||||||
|
|
@ -13202,9 +13203,10 @@ export interface AndroidDevice {
|
||||||
serviceWorkers?: "allow"|"block";
|
serviceWorkers?: "allow"|"block";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* If specified, enables strict selectors mode for this context. In the strict selectors mode all operations on
|
* If set to true, enables strict selectors mode for this context. In the strict selectors mode all operations on
|
||||||
* selectors that imply single target DOM element will throw when more than one element matches the selector. See
|
* selectors that imply single target DOM element will throw when more than one element matches the selector. This
|
||||||
* [Locator] to learn more about the strict mode.
|
* option does not affect any Locator APIs (Locators are always strict). See [Locator] to learn more about the strict
|
||||||
|
* mode.
|
||||||
*/
|
*/
|
||||||
strictSelectors?: boolean;
|
strictSelectors?: boolean;
|
||||||
|
|
||||||
|
|
@ -15103,9 +15105,10 @@ export interface Browser extends EventEmitter {
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* If specified, enables strict selectors mode for this context. In the strict selectors mode all operations on
|
* If set to true, enables strict selectors mode for this context. In the strict selectors mode all operations on
|
||||||
* selectors that imply single target DOM element will throw when more than one element matches the selector. See
|
* selectors that imply single target DOM element will throw when more than one element matches the selector. This
|
||||||
* [Locator] to learn more about the strict mode.
|
* option does not affect any Locator APIs (Locators are always strict). See [Locator] to learn more about the strict
|
||||||
|
* mode.
|
||||||
*/
|
*/
|
||||||
strictSelectors?: boolean;
|
strictSelectors?: boolean;
|
||||||
|
|
||||||
|
|
@ -18063,9 +18066,10 @@ export interface BrowserContextOptions {
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* If specified, enables strict selectors mode for this context. In the strict selectors mode all operations on
|
* If set to true, enables strict selectors mode for this context. In the strict selectors mode all operations on
|
||||||
* selectors that imply single target DOM element will throw when more than one element matches the selector. See
|
* selectors that imply single target DOM element will throw when more than one element matches the selector. This
|
||||||
* [Locator] to learn more about the strict mode.
|
* option does not affect any Locator APIs (Locators are always strict). See [Locator] to learn more about the strict
|
||||||
|
* mode.
|
||||||
*/
|
*/
|
||||||
strictSelectors?: boolean;
|
strictSelectors?: boolean;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue