XCUIElement+FBUID.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 (FBUID)
  12. /*! Represents unique internal element identifier, which is the same for an element and its snapshot as UUIDv4 */
  13. @property (nonatomic, nullable, readonly, copy) NSString *fb_uid;
  14. /*! Represents unique internal element identifier, which is the same for an element and its snapshot */
  15. @property (nonatomic, readonly) unsigned long long fb_accessibiltyId;
  16. @end
  17. @interface FBXCElementSnapshotWrapper (FBUID)
  18. /*! Represents unique internal element identifier, which is the same for an element and its snapshot as UUIDv4 */
  19. @property (nonatomic, nullable, readonly, copy) NSString *fb_uid;
  20. /*! Represents unique internal element identifier, which is the same for an element and its snapshot */
  21. @property (nonatomic, readonly) unsigned long long fb_accessibiltyId;
  22. /**
  23. Fetches wdUID attribute value for the given snapshot instance
  24. @param snapshot snapshot instance
  25. @return UID attribute value
  26. */
  27. + (nullable NSString *)wdUIDWithSnapshot:(id<FBXCElementSnapshot>)snapshot;
  28. @end
  29. NS_ASSUME_NONNULL_END