XCUIElement+FBSwiping.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /**
  2. * Copyright (c) 2015-present, Facebook, Inc.
  3. * All rights reserved.
  4. *
  5. * This source code is licensed under the BSD-style license found in the
  6. * LICENSE file in the root directory of this source tree. An additional grant
  7. * of patent rights can be found in the PATENTS file in the same directory.
  8. */
  9. #import <XCTest/XCTest.h>
  10. NS_ASSUME_NONNULL_BEGIN
  11. @interface XCUIElement (FBSwiping)
  12. /**
  13. * Performs swipe gesture on the element
  14. *
  15. * @param direction Swipe direction. The following values are supported: up, down, left and right
  16. * @param velocity Swipe speed in pixels per second
  17. */
  18. - (void)fb_swipeWithDirection:(NSString *)direction velocity:(nullable NSNumber*)velocity;
  19. @end
  20. #if !TARGET_OS_TV
  21. @interface XCUICoordinate (FBSwiping)
  22. /**
  23. * Performs swipe gesture on the coordinate
  24. *
  25. * @param direction Swipe direction. The following values are supported: up, down, left and right
  26. * @param velocity Swipe speed in pixels per second
  27. */
  28. - (void)fb_swipeWithDirection:(NSString *)direction velocity:(nullable NSNumber*)velocity;
  29. @end
  30. #endif
  31. NS_ASSUME_NONNULL_END