XCUIElementDouble.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 <Foundation/Foundation.h>
  10. #import <WebDriverAgentLib/FBElement.h>
  11. #import <XCTest/XCUIElementTypes.h>
  12. @class XCUIApplication;
  13. @interface XCUIElementDouble : NSObject<FBElement>
  14. @property (nonatomic, strong, nonnull) XCUIApplication *application;
  15. @property (nonatomic, readwrite, assign) CGRect frame;
  16. @property (nonatomic, readwrite, nullable) id lastSnapshot;
  17. @property (nonatomic, assign) BOOL fb_isObstructedByAlert;
  18. @property (nonatomic, readonly, nonnull) NSString *fb_cacheId;
  19. @property (nonatomic, readwrite, copy, nonnull) NSDictionary *wdRect;
  20. @property (nonatomic, readwrite, assign) CGRect wdFrame;
  21. @property (nonatomic, readwrite, copy, nonnull) NSString *wdUID;
  22. @property (nonatomic, copy, readwrite, nullable) NSString *wdName;
  23. @property (nonatomic, copy, readwrite, nullable) NSString *wdLabel;
  24. @property (nonatomic, copy, readwrite, nonnull) NSString *wdType;
  25. @property (nonatomic, strong, readwrite, nullable) NSString *wdValue;
  26. @property (nonatomic, readwrite, getter=isWDEnabled) BOOL wdEnabled;
  27. @property (nonatomic, readwrite, getter=isWDSelected) BOOL wdSelected;
  28. @property (nonatomic, readwrite, assign) CGRect wdNativeFrame;
  29. @property (nonatomic, readwrite) NSUInteger wdIndex;
  30. @property (nonatomic, readwrite, getter=isWDVisible) BOOL wdVisible;
  31. @property (nonatomic, readwrite, getter=isWDAccessible) BOOL wdAccessible;
  32. @property (nonatomic, readwrite, getter = isWDFocused) BOOL wdFocused;
  33. @property (nonatomic, readwrite, getter = isWDHittable) BOOL wdHittable;
  34. @property (nonatomic, copy, readwrite, nullable) NSString *wdPlaceholderValue;
  35. @property (copy, nonnull) NSArray *children;
  36. @property (nonatomic, readwrite, assign) XCUIElementType elementType;
  37. @property (nonatomic, readwrite, getter=isWDAccessibilityContainer) BOOL wdAccessibilityContainer;
  38. @property (nonatomic, copy, readwrite, nullable) NSString *wdTraits;
  39. - (void)resolve;
  40. - (id _Nonnull)fb_standardSnapshot;
  41. - (id _Nonnull)fb_customSnapshot;
  42. - (nullable id)query;
  43. // Checks
  44. @property (nonatomic, assign, readonly) BOOL didResolve;
  45. @end