File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -26,9 +26,26 @@ present.
26
26
27
27
### queryAllBy
28
28
29
- ` queryAllBy* ` queries return an array of all matching nodes for a query, and
29
+ ` queryAllBy* ` queries return an array of all matching nodes for a query, and
30
30
return an empty array (` [] ` ) if no elements match.
31
31
32
+ ### findBy
33
+
34
+ ` findBy* ` queries return a promise which resolves when an element is found which
35
+ matches the given query. The promise is rejected if no element is found after
36
+ a default timeout of ` 4500 ` ms.
37
+
38
+ > Note, this is a simple combination of ` getBy* ` queries and
39
+ > [ ` waitForElement ` ] ( /docs/api-async#waitforelement ) . The ` findBy* ` queries
40
+ > accept the ` waitForElement ` options as the last argument. (i.e.
41
+ > ` findByText(container, 'text', queryOptions, waitForElementOptions) ` )
42
+
43
+ ### findAllBy
44
+
45
+ ` findAllBy* ` queries return a promise which resolves to an array of elements when
46
+ any elements are found which match the given query. The promise is rejected if no
47
+ elements are found after a default timeout of ` 4500 ` ms.
48
+
32
49
## Options
33
50
34
51
The argument to a query can be a _ string_ , _ regular expression_ , or _ function_ .
You can’t perform that action at this time.
0 commit comments