Commit b1e22d1
Return element to make it chainable downstream
cy.type(text) returns the element so that other operations can happen.
Example of a simple form on a complex page with no easy selectors on the button:
```
cy.get('input[name="myinput"]')
.clear()
.fill(newText)
.siblings('button').click()
```1 parent 12bd517 commit b1e22d1
2 files changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
79 | 85 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
77 | 79 | | |
78 | 80 | | |
0 commit comments