FBXCElementSnapshot.h 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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 <WebDriverAgentLib/CDStructures.h>
  11. @protocol FBXCAccessibilityElement;
  12. NS_ASSUME_NONNULL_BEGIN
  13. @protocol FBXCElementSnapshot <NSObject, XCUIElementAttributes>
  14. @property BOOL hasFocus; // @synthesize hasFocus=_hasFocus;
  15. @property BOOL hasKeyboardFocus; // @synthesize hasKeyboardFocus=_hasKeyboardFocus;
  16. @property(copy) NSDictionary *additionalAttributes; // @synthesize additionalAttributes=_additionalAttributes;
  17. @property(copy) NSArray *userTestingAttributes; // @synthesize userTestingAttributes=_userTestingAttributes;
  18. @property unsigned long long traits; // @synthesize traits=_traits;
  19. @property BOOL isMainWindow; // @synthesize isMainWindow=_isMainWindow;
  20. @property(copy) NSArray *children; // @synthesize children=_children;
  21. @property id<FBXCElementSnapshot> parent; // @synthesize parent=_parent;
  22. @property(retain) id<FBXCAccessibilityElement> parentAccessibilityElement; // @synthesize parentAccessibilityElement=_parentAccessibilityElement;
  23. @property(retain) id<FBXCAccessibilityElement> accessibilityElement; // @synthesize accessibilityElement=_accessibilityElement;
  24. @property(readonly) NSArray *suggestedHitpoints;
  25. @property(readonly) struct CGRect visibleFrame;
  26. @property(readonly) id<FBXCElementSnapshot> scrollView;
  27. @property(readonly, copy) NSString *truncatedValueString;
  28. @property(readonly) long long depth;
  29. @property(readonly, copy) id<FBXCElementSnapshot> pathFromRoot;
  30. @property(readonly) BOOL isTopLevelTouchBarElement;
  31. @property(readonly) BOOL isTouchBarElement;
  32. @property(readonly, copy) NSString *sparseTreeDescription;
  33. @property(readonly, copy) NSString *compactDescription;
  34. @property(readonly, copy) NSString *pathDescription;
  35. @property(readonly) NSString *recursiveDescriptionIncludingAccessibilityElement;
  36. @property(readonly) NSString *recursiveDescription;
  37. @property(readonly, copy) NSArray *identifiers;
  38. @property(nonatomic) unsigned long long generation; // @synthesize generation=_generation;
  39. /*! DO NOT USE DIRECTLY! */
  40. @property(nonatomic) XCUIApplication *application; // @synthesize application=_application;
  41. /*! DO NOT USE DIRECTLY! */
  42. @property(readonly) struct CGPoint hitPointForScrolling;
  43. /*! DO NOT USE DIRECTLY! Please use fb_hitPoint instead */
  44. @property(readonly) struct CGPoint hitPoint;
  45. - (id)_uniquelyIdentifyingObjectiveCCode;
  46. - (id)_uniquelyIdentifyingSwiftCode;
  47. - (BOOL)_isAncestorOfElement:(id)arg1;
  48. - (BOOL)_isDescendantOfElement:(id)arg1;
  49. - (BOOL)_frameFuzzyMatchesElement:(id)arg1;
  50. - (BOOL)_fuzzyMatchesElement:(id)arg1;
  51. - (BOOL)_matchesElement:(id)arg1;
  52. - (BOOL)matchesTreeWithRoot:(id)arg1;
  53. - (void)mergeTreeWithSnapshot:(id)arg1;
  54. - (id)_childMatchingElement:(id)arg1;
  55. - (NSArray<id<FBXCElementSnapshot>> *)_allDescendants;
  56. - (BOOL)hasDescendantMatchingFilter:(CDUnknownBlockType)arg1;
  57. - (NSArray<id<FBXCElementSnapshot>> *)descendantsByFilteringWithBlock:(BOOL(^)(id<FBXCElementSnapshot> snapshot))block;
  58. - (id)elementSnapshotMatchingAccessibilityElement:(id)arg1;
  59. - (void)enumerateDescendantsUsingBlock:(void(^)(id<FBXCElementSnapshot> snapshot))block;
  60. - (id)recursiveDescriptionWithIndent:(id)arg1 includeAccessibilityElement:(BOOL)arg2;
  61. - (id)init;
  62. - (struct CGPoint)hostingAndOrientationTransformedPoint:(struct CGPoint)arg1;
  63. - (struct CGPoint)_transformPoint:(struct CGPoint)arg1 windowContextID:(id)arg2 windowDisplayID:(id)arg3;
  64. - (id)hitTest:(struct CGPoint)arg1;
  65. // Available since Xcode 10
  66. - (id)hitPoint:(NSError **)error;
  67. // Since Xcode 10.2
  68. + (id)axAttributesForElementSnapshotKeyPaths:(id)arg1 isMacOS:(_Bool)arg2;
  69. // Since Xcode 10.0
  70. + (NSArray<NSString *> *)sanitizedElementSnapshotHierarchyAttributesForAttributes:(nullable NSArray<NSString *> *)arg1
  71. isMacOS:(_Bool)arg2;
  72. @end
  73. NS_ASSUME_NONNULL_END