XCUIElementDouble.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /**
  2. * Copyright (c) 2018-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, readwrite, copy, nonnull) NSDictionary *wdRect;
  19. @property (nonatomic, readwrite, assign) CGRect wdFrame;
  20. @property (nonatomic, readwrite, copy, nonnull) NSString *wdUID;
  21. @property (nonatomic, copy, readwrite, nullable) NSString *wdName;
  22. @property (nonatomic, copy, readwrite, nullable) NSString *wdLabel;
  23. @property (nonatomic, copy, readwrite, nonnull) NSString *wdType;
  24. @property (nonatomic, strong, readwrite, nullable) NSString *wdValue;
  25. @property (nonatomic, readwrite, getter=isWDEnabled) BOOL wdEnabled;
  26. @property (nonatomic, readwrite, getter=isWDSelected) BOOL wdSelected;
  27. @property (nonatomic, readwrite) NSUInteger wdIndex;
  28. @property (nonatomic, readwrite, getter=isWDVisible) BOOL wdVisible;
  29. @property (nonatomic, readwrite, getter=isWDAccessible) BOOL wdAccessible;
  30. @property (nonatomic, readwrite, getter=isWDFocused) BOOL wdFocused;
  31. @property (nonatomic, readwrite, getter = isWDHittable) BOOL wdHittable;
  32. @property (copy, nonnull) NSArray *children;
  33. @property (nonatomic, readwrite, assign) XCUIElementType elementType;
  34. @property (nonatomic, readwrite, getter=isWDAccessibilityContainer) BOOL wdAccessibilityContainer;
  35. - (void)resolve;
  36. - (id _Nonnull)fb_standardSnapshot;
  37. - (id _Nonnull)fb_customSnapshot;
  38. // Checks
  39. @property (nonatomic, assign, readonly) BOOL didResolve;
  40. @end