* Get the visible (i.e. not hidden by CSS) innerText of this element, * including sub-elements, without any leading or trailing whitespace. * * @return {!Promise } A promise that will be * resolved with the element's visible text.
()
| 3032 | * resolved with the element's visible text. |
| 3033 | */ |
| 3034 | getText() { |
| 3035 | return this.execute_(new command.Command(command.Name.GET_ELEMENT_TEXT)) |
| 3036 | } |
| 3037 | |
| 3038 | /** |
| 3039 | * Snapshots the accessibility tree of this element's subtree. |