type method

  1. @override
Future<Null> type(
  1. String keys, {
  2. bool focusBefore = true,
  3. bool blurAfter = true,
})
override

Types keys into this element, if possible (e.g. for an input element).

focusBefore indicates whether to focus this element before typing. blurAfter indicates whether to blur this element after typing.

Implementation

@override
Future<Null> type(String keys,
        {bool focusBefore = true, bool blurAfter = true}) async =>
    _retryWhenStale(() async {
      if (focusBefore) await focus();
      _single.sendKeys(keys);
      if (blurAfter) await blur();
    });