docs: strictSelectors does not affect Locators (#19414)

Fixes https://github.com/microsoft/playwright/issues/19398
This commit is contained in:
Yury Semikhatsky 2022-12-12 15:09:44 -08:00 committed by GitHub
parent 539893402e
commit 0cb1e97528
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 13 deletions

View file

@ -677,8 +677,9 @@ contexts override the proxy, global proxy will be never used and can be any stri
## context-option-strict
- `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.
This option does not affect any Locator APIs (Locators are always strict).
See [Locator] to learn more about the strict mode.
## context-option-service-worker-policy

View file

@ -11830,9 +11830,10 @@ export interface BrowserType<Unused = {}> {
slowMo?: number;
/**
* If specified, 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
* [Locator] to learn more about the strict mode.
* 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. This
* option does not affect any Locator APIs (Locators are always strict). See [Locator] to learn more about the strict
* mode.
*/
strictSelectors?: boolean;
@ -13202,9 +13203,10 @@ export interface AndroidDevice {
serviceWorkers?: "allow"|"block";
/**
* If specified, 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
* [Locator] to learn more about the strict mode.
* 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. This
* option does not affect any Locator APIs (Locators are always strict). See [Locator] to learn more about the strict
* mode.
*/
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
* selectors that imply single target DOM element will throw when more than one element matches the selector. See
* [Locator] to learn more about the strict mode.
* 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. This
* option does not affect any Locator APIs (Locators are always strict). See [Locator] to learn more about the strict
* mode.
*/
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
* selectors that imply single target DOM element will throw when more than one element matches the selector. See
* [Locator] to learn more about the strict mode.
* 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. This
* option does not affect any Locator APIs (Locators are always strict). See [Locator] to learn more about the strict
* mode.
*/
strictSelectors?: boolean;