longPress method

PlaybookStep longPress(
  1. Object target
)

Presses and holds target.

Implementation

PlaybookStep longPress(Object target) {
  final PlaybookFinder finder = Find.target(target);
  return PlaybookStep(
    'Long press ${finder.description}',
    (PlaybookActor actor) => actor.longPress(finder),
  );
}