| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- /**
- * Copyright (c) 2015-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- */
- #import <WebDriverAgentLib/XCUIApplication.h>
- NS_ASSUME_NONNULL_BEGIN
- @interface FBApplication : XCUIApplication
- /**
- Constructor used to get current active application
- */
- + (instancetype)fb_activeApplication;
- /**
- Constructor used to get current active application
- @param bundleId The bundle identifier of an app, which should be selected as active by default
- if it is present in the list of active applications
- */
- + (instancetype)fb_activeApplicationWithDefaultBundleId:(nullable NSString *)bundleId;
- /**
- Constructor used to get the system application (e.g. Springboard on iOS)
- */
- + (instancetype)fb_systemApplication;
- /**
- Retrieves the list of all currently active applications
- */
- + (NSArray<FBApplication *> *)fb_activeApplications;
- /**
- Switch to system app (called Springboard on iOS)
- @param error If there is an error, upon return contains an NSError object that describes the problem.
- @return YES if the operation succeeds, otherwise NO.
- */
- + (BOOL)fb_switchToSystemApplicationWithError:(NSError **)error;
- @end
- NS_ASSUME_NONNULL_END
|