tap method

Future<void> tap()

This method scrolls element into view if needed, and then uses touchscreen.tap to tap in the center of the element. If the element is detached from DOM, the method throws an error.

Implementation

Future<void> tap() async {
  await _scrollIntoViewIfNeeded();
  var point = await _clickablePoint();
  await page.touchscreen.tap(point);
}