XCUIApplication+FBTouchAction.h 1.1 KB

123456789101112131415161718192021222324252627282930
  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. #import "FBElementCache.h"
  11. NS_ASSUME_NONNULL_BEGIN
  12. @interface XCUIApplication (FBTouchAction)
  13. /**
  14. Perform complex touch action in scope of the current application.
  15. @param actions Array of dictionaries, whose format is described in W3C spec (https://github.com/jlipps/simple-wd-spec#perform-actions)
  16. @param elementCache Cached elements mapping for the currrent application. The method assumes all elements are already represented by their actual instances if nil value is set
  17. @param error If there is an error, upon return contains an NSError object that describes the problem
  18. @return YES If the touch action has been successfully performed without errors
  19. */
  20. - (BOOL)fb_performW3CActions:(NSArray *)actions elementCache:(nullable FBElementCache *)elementCache error:(NSError * _Nullable*)error;
  21. @end
  22. NS_ASSUME_NONNULL_END