* 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.
()
| 2943 | * resolved with the element's visible text. |
| 2944 | */ |
| 2945 | getText() { |
| 2946 | return this.execute_(new command.Command(command.Name.GET_ELEMENT_TEXT)) |
| 2947 | } |
| 2948 | |
| 2949 | /** |
| 2950 | * Get the computed WAI-ARIA role of element. |