Commit b4190e0
Libo Liu
Add a textarea element
Add new clear options to set a value for textareas. By default, in
chrome selenium test, when `set` value of text-related node, it would
only prepend the first line. As the capybara chrome node: it only send
a space and a backspace to clear the text. https://bit.ly/3zpJZYJ
However, this will **ONLY** clear the first line of the textarea.
In this commit, we added a Textarea element to override the `set` method
to clear all text in the textarea.
This is following the set definition in the Capybara: it says we could
use `[[:command, 'a'], :backspace]` to clear all text.
Github capybara/selenium/node.rb#L55: https://bit.ly/3CtlTP3
It works both for firefox and chrome1 parent 8cd0aa1 commit b4190e0
File tree
3 files changed
+31
-0
lines changed- lib
- ae_page_objects/elements
- test/unit/dsl
3 files changed
+31
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
91 | 108 | | |
92 | 109 | | |
93 | 110 | | |
| |||
0 commit comments