XCUIElement+FBVisibleFrame.h 942 B

123456789101112131415161718192021222324252627282930313233343536
  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 "FBXCElementSnapshotWrapper.h"
  10. NS_ASSUME_NONNULL_BEGIN
  11. @interface XCUIElement (FBVisibleFrame)
  12. /**
  13. Returns the snapshot visibleFrame with a fallback to direct attribute retrieval from FBXCAXClient in case of a snapshot fault (nil visibleFrame)
  14. @return the snapshot visibleFrame
  15. */
  16. - (CGRect)fb_visibleFrame;
  17. @end
  18. @interface FBXCElementSnapshotWrapper (FBVisibleFrame)
  19. /**
  20. Returns the snapshot visibleFrame with a fallback to direct attribute retrieval from FBXCAXClient in case of a snapshot fault (nil visibleFrame)
  21. @return the snapshot visibleFrame
  22. */
  23. - (CGRect)fb_visibleFrame;
  24. @end
  25. NS_ASSUME_NONNULL_END