XCUIElement+FBWebDriverAttributes.h 866 B

123456789101112131415161718192021222324252627282930313233
  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 <WebDriverAgentLib/FBElement.h>
  10. #import <WebDriverAgentLib/XCUIElement.h>
  11. #import <WebDriverAgentLib/FBXCElementSnapshotWrapper.h>
  12. NS_ASSUME_NONNULL_BEGIN
  13. @interface XCUIElement (WebDriverAttributes) <FBElement>
  14. @end
  15. @interface FBXCElementSnapshotWrapper (WebDriverAttributes) <FBElement>
  16. /**
  17. Fetches wdName attribute value for the given snapshot instance
  18. @param snapshot snapshot instance
  19. @return wdName attribute value or nil
  20. */
  21. + (nullable NSString *)wdNameWithSnapshot:(id<FBXCElementSnapshot>)snapshot;
  22. @end
  23. NS_ASSUME_NONNULL_END