mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-14 05:37:20 +03:00
docs(selectors.md and locators.md): Fixed typos and added missing words (#11088)
This commit is contained in:
parent
db227e1059
commit
dbac5a5298
@ -70,8 +70,8 @@ await locator.ClickAsync();
|
||||
## Strictness
|
||||
|
||||
Locators are strict. This means that all operations on locators that imply
|
||||
some target DOM element will throw if more than one element matches given
|
||||
selector.
|
||||
some target DOM element will throw an exception if more than one element matches
|
||||
given selector.
|
||||
|
||||
```js
|
||||
// Throws if there are several buttons in DOM:
|
||||
|
@ -755,8 +755,8 @@ In react selectors, component names are transcribed with **CamelCase**.
|
||||
Selector examples:
|
||||
|
||||
- match by **component**: `_react=BookItem`
|
||||
- match by component and **exact property value**, case-sensetive: `_react=BookItem[author = "Steven King"]`
|
||||
- match by property value only, **case-insensetive**: `_react=[author = "steven king" i]`
|
||||
- match by component and **exact property value**, case-sensitive: `_react=BookItem[author = "Steven King"]`
|
||||
- match by property value only, **case-insensitive**: `_react=[author = "steven king" i]`
|
||||
- match by component and **truthy property value**: `_react=MyButton[enabled]`
|
||||
- match by component and **boolean value**: `_react=MyButton[enabled = false]`
|
||||
- match by property **value substring**: `_react=[author *= "King"]`
|
||||
@ -791,8 +791,8 @@ In vue selectors, component names are transcribed with **kebab-case**.
|
||||
Selector examples:
|
||||
|
||||
- match by **component**: `_vue=book-item`
|
||||
- match by component and **exact property value**, case-sensetive: `_vue=book-item[author = "Steven King"]`
|
||||
- match by property value only, **case-insensetive**: `_vue=[author = "steven king" i]`
|
||||
- match by component and **exact property value**, case-sensitive: `_vue=book-item[author = "Steven King"]`
|
||||
- match by property value only, **case-insensitive**: `_vue=[author = "steven king" i]`
|
||||
- match by component and **truthy property value**: `_vue=my-button[enabled]`
|
||||
- match by component and **boolean value**: `_vue=my-button[enabled = false]`
|
||||
- match by property **value substring**: `_vue=[author *= "King"]`
|
||||
|
Loading…
Reference in New Issue
Block a user