innerText property

  1. @override
String get innerText
override

The inner content of this element.

This should return the value of <element>.innerText, but behaviour may vary for the different pageloader implementations.

Implementation

@override
String get innerText => _retryWhenStale(() =>
    (_driver.execute('return arguments[0].textContent;', [_single]) as String)
        .trim());