docs(selectors.md and locators.md): Fixed typos and added missing words (#11088)

This commit is contained in:
spaniardmaximus 2021-12-23 21:32:28 +00:00 committed by GitHub
parent db227e1059
commit dbac5a5298
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -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:

View File

@ -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"]`