tapOnNotificationBySelector method

Future<void> tapOnNotificationBySelector(
  1. CompoundSelector selector, {
  2. Duration? timeout,
})

Taps on the visible notification using selector.

Notification shade has to be opened first with openNotifications.

See also:

Implementation

Future<void> tapOnNotificationBySelector(
  CompoundSelector selector, {
  Duration? timeout,
}) {
  return platform.action.mobile(
    android: () => platform.android.tapOnNotificationBySelector(
      selector.android,
      timeout: timeout,
    ),
    ios: () => platform.ios.tapOnNotificationBySelector(
      selector.ios,
      timeout: timeout,
    ),
  );
}