Skip to content

Commit

Permalink
Write documentation for native scrollTo method
Browse files Browse the repository at this point in the history
  • Loading branch information
piotruela authored and jBorkowska committed Sep 9, 2024
1 parent cb40485 commit 6d3dcd0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/patrol/lib/src/native/native_automator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -768,6 +768,8 @@ class NativeAutomator {
);
}

/// Scrolls to the native view specified by [selector].
/// Works only on Android.
Future<void> scrollTo(
Selector selector, {
String? appId,
Expand Down
2 changes: 2 additions & 0 deletions packages/patrol/lib/src/native/native_automator2.dart
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,8 @@ class NativeAutomator2 {
);
}

/// Scrolls to the native view specified by [selector].
/// Works only on Android.
Future<void> scrollTo(
NativeSelector selector, {
String? appId,
Expand Down

0 comments on commit 6d3dcd0

Please sign in to comment.