Giter VIP home page Giter VIP logo

webdriveragent's Introduction

WebDriverAgent

NPM version Downloads

Release

GitHub license

WebDriverAgent is a WebDriver server implementation for iOS that can be used to remote control iOS devices. It allows you to launch & kill applications, tap & scroll views or confirm view presence on a screen. This makes it a perfect tool for application end-to-end testing or general purpose device automation. It works by linking XCTest.framework and calling Apple's API to execute commands directly on a device. WebDriverAgent is developed for end-to-end testing and is successfully adopted by Appium via XCUITest driver.

Features

  • Both iOS and tvOS platforms are supported with devices & simulators
  • Implements most of WebDriver Spec
  • Implements part of Mobile JSON Wire Protocol Spec
  • USB support for devices is implemented via appium-ios-device library and has zero dependencies on third-party tools.
  • Easy development cycle as it can be launched & debugged directly via Xcode
  • Use Mac2Driver to automate macOS apps

Getting Started On This Repository

You need to have Node.js installed for this project.

After it is finished you can simply open WebDriverAgent.xcodeproj and start WebDriverAgentRunner test and start sending requests.

More about how to start WebDriverAgent here.

Known Issues

If you are having some issues please checkout wiki first.

For Contributors

If you want to help us out, you are more than welcome to. However please make sure you have followed the guidelines in CONTRIBUTING.

Creating Bundles

npm run bundle

Then, you find WebDriverAgentRunner-Runner-sim-<version>.zip for iOS and WebDriverAgentRunner-Runner-tv_sim-<version>.zip for tvOS files in the current directory.

License

WebDriverAgent is BSD-licensed. We also provide an additional patent grant.

Third Party Sources

WebDriverAgent depends on the following third-party frameworks:

These projects haven't been maintained in a while. That's why the source code of these projects has been integrated directly in the WebDriverAgent source tree.

You can find the source files and their licenses in the WebDriverAgentLib/Vendor directory.

Have fun!

webdriveragent's People

Contributors

antiarchit avatar artemevvfb avatar bootstraponline avatar dan-maor avatar danmperfecto avatar dependabot-preview[bot] avatar dependabot[bot] avatar dmissmann avatar dpgraham avatar electricbubble avatar fr0l avatar greenkeeper[bot] avatar imurchie avatar jlipps avatar jonahss avatar kazucocoa avatar lawrencelomax avatar marekcirkos avatar matthewhorst avatar mgkeeley avatar mmmulani avatar mykola-mokhnach avatar qmfrederik avatar rafe-g avatar semantic-release-bot avatar srinivasantarget avatar ssynix avatar umutuzgur avatar yaphatak avatar zats avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

webdriveragent's Issues

An error will be reported when `fb_resetAuthorizationStatusForResource` is executed

- (BOOL)fb_resetAuthorizationStatusForResource:(long long)resourceId error:(NSError **)error
{
  SEL selector = NSSelectorFromString(@"resetAuthorizationStatusForResource:");
  if (![self respondsToSelector:selector]) {
    return [[[FBErrorBuilder builder]
             withDescription:@"'resetAuthorizationStatusForResource' API is only supported for Xcode SDK 11.4 and later"]
            buildError:error];
  }
  NSMethodSignature *signature = [self methodSignatureForSelector:selector];
  NSInvocation *invocation = [NSInvocation  invocationWithMethodSignature:signature];
  [invocation setSelector:selector];
  [invocation setArgument:&resourceId atIndex:2]; // 0 and 1 are reserved

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Warc-performSelector-leaks"
//  [self performSelector:selector withObject:@(resourceId)];
  [invocation invokeWithTarget:self];
#pragma clang diagnostic pop
  return YES;
}

https://stackoverflow.com/questions/26267605/objective-c-performselector-with-integer-object-arguments-gives-garbage-value
performSelector can only be used to call methods where all arguments have object type. If your method has integer parameters, you can't use performSelector.

--> POST http://__UDID__/session/63248B50-75CB-4CE8-B923-F843EFE80E4D/wda/resetAppAuth
{"resource":6}

<-- POST http://__UDID__/session/63248B50-75CB-4CE8-B923-F843EFE80E4D/wda/resetAppAuth
{
  "value" : {
    "error" : "unknown error",
    "message" : "XCUIResourceIdentifierForProtectedResource does not recognize resource -8527103778460977840",
    "traceback" : "(\n\t0   CoreFoundation                      ...\n)"
  },
  "sessionId" : "63248B50-75CB-4CE8-B923-F843EFE80E4D"
}

ios13 device /source app resolution not same

Warning:

These issues are not tracked. Please create new issues in the main Appium
repository: https://github.com/appium/appium/issues/new

version : ios 13
device : iphone7

version : ios12
device : iphone7

I run touchAndHoldCoordination x=90, y=90
but play is another coordination

I see this problem
I run /source application size result (same app)

ios 13 iPhone7 device
: 320 * 568

ios 12 iPhone7 device
: 375 * 667

this problem... I wan't get same resolution

unknown error: Timeout waiting until SpringBoard is visible

Method: POST
URL: http://localhost:8100/wda/homescreen
unknown error: Timeout waiting until SpringBoard is visible
- (BOOL)fb_isApplicationBoardVisible
{
  [self fb_nativeResolve];
#if TARGET_OS_TV
  // GridCollectionView works for simulator and real device so far
  return self.collectionViews[@"GridCollectionView"].isEnabled;
#else
  // the dock (and other icons) don't seem to be consistently reported as
  // visible. esp on iOS 11 but also on 10.3.3
  return self.otherElements[@"Dock"].isEnabled;
//  return self.otherElements[@"Dock"].isEnabled || self.otherElements[@"程序坞"].isEnabled;
//  return self.pageIndicators[@"Page control"].isEnabled;
#endif
}

When the ios language is Chinese, the actual name of Dock is 程序坞.

If I change it to the following:

return self.otherElements[@"Dock"].isEnabled || self.otherElements[@"程序坞"].isEnabled;

It works, but it takes twice as long

(2.09s) -> self.otherElements[@"Dock"].isEnabled;
(5.04s) -> self.otherElements[@"Dock"].isEnabled || self.otherElements[@"程序坞"].isEnabled;

So, I tried to change it to the following

return self.pageIndicators[@"Page control"].isEnabled;

It may only take 1.61s, but it should also prove that it has returned to SpringBoard

What do you think?

Change orientation does not work on iOS 13.4.1

It seems that iOS 13.4.1 is not yet supported. When I post to the /orientation API, Xcode threw error

2020-06-04 16:40:07.210632+0700 WebDriverAgentRunner-Runner[955:263051] Enqueue Failure: Failure fetching attributes for Device system-wide element: Error Domain=XCTDaemonErrorDomain Code=39 "Deprecated API. Call _XCT_fetchAttributes:forElement:reply: instead." UserInfo={NSLocalizedDescription=Deprecated API. Call _XCT_fetchAttributes:forElement:reply: instead.} /Users/nhunh/workspace/source/azt-openstfios/vendor/WebDriverAgent/WebDriverAgentRunner/UITestingUITests.m 38 1 2020-06-04 16:40:07.211837+0700 WebDriverAgentRunner-Runner[955:263051] Enqueue Failure: Failure to determine system application: (null) /Users/nhunh/workspace/source/azt-openstfios/vendor/WebDriverAgent/WebDriverAgentRunner/UITestingUITests.m 38 1 2020-06-04 16:40:07.215087+0700 WebDriverAgentRunner-Runner[955:263051] Enqueue Failure: Failure fetching attributes for (null): Error Domain=XCTDaemonErrorDomain Code=39 "Deprecated API. Call _XCT_fetchAttributes:forElement:reply: instead." UserInfo={NSLocalizedDescription=Deprecated API. Call _XCT_fetchAttributes:forElement:reply: instead.} /Users/nhunh/workspace/source/azt-openstfios/vendor/WebDriverAgent/WebDriverAgentRunner/UITestingUITests.m 38 1 2020-06-04 16:40:07.216305+0700 WebDriverAgentRunner-Runner[955:263051] Enqueue Failure: Failure getting list of active applications: (null) /Users/nhunh/workspace/source/azt-openstfios/vendor/WebDriverAgent/WebDriverAgentRunner/UITestingUITests.m 38 1 2020-06-04 16:40:07.216499+0700 WebDriverAgentRunner-Runner[955:263051] Cannot retrieve any active applications. Assuming the system application is the active one 2020-06-04 16:40:07.219056+0700 WebDriverAgentRunner-Runner[955:263051] Enqueue Failure: Failure fetching attributes for Device system-wide element: Error Domain=XCTDaemonErrorDomain Code=39 "Deprecated API. Call _XCT_fetchAttributes:forElement:reply: instead." UserInfo={NSLocalizedDescription=Deprecated API. Call _XCT_fetchAttributes:forElement:reply: instead.} /Users/nhunh/workspace/source/azt-openstfios/vendor/WebDriverAgent/WebDriverAgentRunner/UITestingUITests.m 38 1 2020-06-04 16:40:07.219744+0700 WebDriverAgentRunner-Runner[955:263051] Enqueue Failure: Failure to determine system application: (null) /Users/nhunh/workspace/source/azt-openstfios/vendor/WebDriverAgent/WebDriverAgentRunner/UITestingUITests.m 38 1 2020-06-04 16:40:07.220360+0700 WebDriverAgentRunner-Runner[955:263051] *** Assertion failure in -[XCUIApplicationMonitor_iOS applicationProcessWithPID:], /Library/Caches/com.apple.xbs/Sources/XCTest_iOS/XCTest-14460.20/Sources/UITesting/Applications/XCUIApplicationMonitor.m:227

The 'value' of 'getPasteboard' is always empty

Method: POST
URL: http://localhost:8100/session/885C63E2-6F66-4DB8-921B-72B34D254099/wda/setPasteboard
Body: {"content":"SGkgYWdhaW4=","contentType":"plaintext"}

Method: POST
URL: http://localhost:8100/session/885C63E2-6F66-4DB8-921B-72B34D254099/wda/getPasteboard
Body: {"contentType":"plaintext"}
+ (NSData *)dataForType:(NSString *)type error:(NSError **)error
{
  UIPasteboard *pb = UIPasteboard.generalPasteboard;
  NSLog(@"### %@", pb.hasStrings ? @"YES" : @"NO");
  NSLog(@"### %@", pb.hasImages ? @"YES" : @"NO");
  NSLog(@"### %@", pb.hasURLs ? @"YES" : @"NO");
  if ([type.lowercaseString isEqualToString:@"plaintext"]) {
    if (pb.hasStrings) {
      return [[pb.strings componentsJoinedByString:@"\n"] dataUsingEncoding:NSUTF8StringEncoding];
    }
  } else if ([type.lowercaseString isEqualToString:@"image"]) {
    if (pb.hasImages) {
      return UIImagePNGRepresentation((UIImage *)pb.image);
    }
  } else if ([type.lowercaseString isEqualToString:@"url"]) {
    if (pb.hasURLs) {
      NSMutableArray<NSString *> *urls = [NSMutableArray array];
      for (NSURL *url in pb.URLs) {
        if (nil != url.absoluteString) {
          [urls addObject:(id)url.absoluteString];
        }
      }
      return [[urls componentsJoinedByString:@"\n"] dataUsingEncoding:NSUTF8StringEncoding];
    }
  } else {
    NSString *description = [NSString stringWithFormat:@"Unsupported content type: %@", type];
    if (error) {
      *error = [[FBErrorBuilder.builder withDescription:description] build];
    }
    return nil;
  }
  return [@"" dataUsingEncoding:NSUTF8StringEncoding];
}
2020-05-07 09:42:10.674052+0800 WebDriverAgentRunner-Runner[2168:590313] Getting the most recent active application (out of 1 total items)
    t =    17.33s Find the Application 'com.apple.mobilenotes'
    t =    17.33s     Requesting snapshot of accessibility hierarchy for app with pid 2133
2020-05-07 09:42:10.844680+0800 WebDriverAgentRunner-Runner[2168:590313] Returning local object of class NSString
2020-05-07 09:42:10.866392+0800 WebDriverAgentRunner-Runner[2168:590313] ### NO
2020-05-07 09:42:10.867659+0800 WebDriverAgentRunner-Runner[2168:590313] ### NO
2020-05-07 09:42:10.868586+0800 WebDriverAgentRunner-Runner[2168:590313] ### NO

I don't understand, is it a problem with my iOS device and system?

- Version
iPhone 6s 11.4.1
iPhone X 13.4.1
Xcode 11.4.1

Remove the 'fork' relationship with FB/WDA so this repo becomes searchable

This repo is marked as forked from facebookarchive/WebDriverAgent, and forked repositories are not searchable in GitHub.

Could you remove the fork relationship with the upstream repository (you should be able to raise a support ticket with GitHub, and they'll take care of this)? This would have the benefit of making the code in this repository searchable.

wad build failed bundle id is added .xctrunner auto

**Mac:10.15.5
Xcode:11.15
wad:appium-WebDriverAgent 2.17.3
using devoper acount not Apple ID
build webdriveragentrunner failed with
:**error: Provisioning profile "com.123" has app ID "com.123", which does not match the bundle ID "com.123.xctrunner". (in target 'WebDriverAgentRunner' from project 'WebDriverAgent')
error: Provisioning profile "com.123" doesn't match the entitlements file's value for the application-identifier entitlement. (in target 'WebDriverAgentRunner' from project 'WebDriverAgent')

wda is working,bug the sessionId is null

Warning:

These issues are not tracked. Please create new issues in the main Appium
repository: https://github.com/appium/appium/issues/new

** this is building log **
2020-10-06 16:44:47.673860+0800 WebDriverAgentRunner-Runner[96318:17479231] Running tests...
Test Suite 'All tests' started at 2020-10-06 16:45:29.779
Test Suite 'WebDriverAgentRunner.xctest' started at 2020-10-06 16:45:29.779
Test Suite 'UITestingUITests' started at 2020-10-06 16:45:29.780
t = nans Suite Set Up
2020-10-06 16:45:29.799563+0800 WebDriverAgentRunner-Runner[96318:17479231] [User Defaults] Couldn't write values for keys (
KeyboardAutocorrection
) in CFPrefsPlistSource<0x282f5f000> (Domain: com.apple.Preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access
2020-10-06 16:45:29.831542+0800 WebDriverAgentRunner-Runner[96318:17479231] [User Defaults] Couldn't write values for keys (
KeyboardPrediction
) in CFPrefsPlistSource<0x282f5f000> (Domain: com.apple.Preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access
2020-10-06 16:45:29.832258+0800 WebDriverAgentRunner-Runner[96318:17479231] [User Defaults] Couldn't write values for keys (
KeyboardShowPredictionBar
) in CFPrefsPlistSource<0x282f5f000> (Domain: com.apple.Preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access
2020-10-06 16:45:29.834602+0800 WebDriverAgentRunner-Runner[96318:17479231] [User Defaults] Couldn't write values for keys (
DidShowGestureKeyboardIntroduction
) in CFPrefsPlistSource<0x282f5f000> (Domain: com.apple.Preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access
Test Case '-[UITestingUITests testRunner]' started.
t = 0.00s Start Test at 2020-10-06 16:45:29.839
t = 0.00s Set Up
2020-10-06 16:45:29.852194+0800 WebDriverAgentRunner-Runner[96318:17479231] Built at Oct 6 2020 16:16:07
2020-10-06 16:45:29.869232+0800 WebDriverAgentRunner-Runner[96318:17479231] ServerURLHere->http://192.168.8.156:8100<-ServerURLHere
2020-10-06 16:45:29.869539+0800 WebDriverAgentRunner-Runner[96318:17479967] Using singleton test manager


the return_data
{
"value" : {
"message" : "WebDriverAgent is ready to accept commands",
"state" : "success",
"os" : {
"testmanagerdVersion" : 28,
"name" : "iOS",
"sdkVersion" : "14.0",
"version" : "13.6"
},
"ios" : {
"ip" : "192.168.8.156"
},
"ready" : true,
"build" : {
"time" : "Oct 6 2020 16:16:07",
"productBundleIdentifier" : "com.facebook.WebDriverAgentRunner"
}
},
"sessionId" : null
}

and the return_data .session is null
help me please

WDA crashes after running for some time.

Restarting after unexpected exit, crash, or test timeout in UITestingUITests/testRunner; summary will include totals from previous launches.

Test Suite 'Selected tests' started at 2020-12-16 12:17:11.416
Test Suite 'WebDriverAgentRunner.xctest' started at 2020-12-16 12:17:11.417
Test Suite 'WebDriverAgentRunner.xctest' failed at 2020-12-16 12:17:11.418.
Executed 1 test, with 1 failure (0 unexpected) in 0.000 (0.000) seconds
Test Suite 'WebDriverAgentLib.framework' started at 2020-12-16 12:17:11.418
Test Suite 'WebDriverAgentLib.framework' passed at 2020-12-16 12:17:11.419.
Executed 0 tests, with 0 failures (0 unexpected) in 0.000 (0.000) seconds
Test Suite 'Selected tests' failed at 2020-12-16 12:17:11.419.
Executed 1 test, with 1 failure (0 unexpected) in 0.000 (0.003) seconds

Fail to run on real device

Hi,
i'm trying to run WebDriverAgentRunner on my iPhone XR, but i'm encountering some error, and i can't understand why

Environment:
Xcode 11.3.1
IOS 13.3.1
Appium 1.15.1
MacOS 10.15.4

i followed the full manual configuration at http://appium.io/docs/en/drivers/ios-xcuitest-real-devices/ but when i type and run
xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=<udid>' test
this error appears:

Testing failed:
	WebDriverAgentRunner:
		WebDriverAgentRunner-Runner.app (797) encountered an error (Failed to load the test bundle. (Underlying error: Impossibile caricare il pacchetto “WebDriverAgentRunner” perché è danneggiato o privo delle risorse necessarie. Il pacchetto è danneggiato o privo delle risorse necessarie. dlopen_preflight(/var/containers/Bundle/Application/3BECB721-0CAB-4A23-A53B-46BEE8E13809/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/WebDriverAgentRunner): no suitable image found.  Did find:
	/var/containers/Bundle/Application/3BECB721-0CAB-4A23-A53B-46BEE8E13809/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/WebDriverAgentRunner: code signature invalid for '/var/containers/Bundle/Application/3BECB721-0CAB-4A23-A53B-46BEE8E13809/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/WebDriverAgentRunner'
))

** TEST FAILED **

It seems to be a provisioning/certificates problem, but from Xcode no issues are shown when i build IntegrationApp and WebDriverAgentRunner.
I tried to use a simulator with the same specifics and xcodebuild command run without problems.

Could anyone help me?
Thanks

Ps: I tried the same steps with project from npm distribution, project inside Appium Desktop and webdriveragent-xcode_11.3.1 downloaded from this repo, same error appears

WDA reinstall after a several test

While I am testing on real device, WDA throw this error and reinstall in infinite loop

`2020-07-02T10:16:58.380Z ERR/device-ios:resources:service 61523 [DEVICE-SERIAL] 2020-07-02 17:16:17.546 xcodebuild[61524:5395403] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
/Library/Developer/Xcode/DerivedData/WebDriverAgent-bxwwbtcppjwivvfmpwrerqpjiope/Logs/Test/Test-WebDriverAgentRunner-2020.07.02_17-16-15-+0700.xcresult/Staging/1_Test/Diagnostics/WebDriverAgentRunner-47B7A0D2-AFDD-4C70-ADD4-BDE6E0DFE517/WebDriverAgentRunner-72C81C5F-43E4-4049-84EB-824F613FA4B3/Session-WebDriverAgentRunner-2020-07-02_171617-lKK3dc.log

2020-07-02 17:16:17.547 xcodebuild[61524:5395220] [MT] IDETestOperationsObserverDebug: (9CF7D1B4-B881-40AC-BE4E-6BD5E873C84B) Beginning test session WebDriverAgentRunner-9CF7D1B4-B881-40AC-BE4E-6BD5E873C84B at 2020-07-02 17:16:17.547 with Xcode 11E608c on target 📱<DVTiOSDevice (0x7fa4f7558e30), iPad Pro 2 - 0001, iPad, 13.5.1 (17F80), DEVICE-SERIAL> {
deviceSerialNumber: DLXWT014HPQJ
identifier: DEVICE-SERIAL
deviceClass: iPad
deviceName: iPad Pro 2 - 0001
deviceIdentifier: DEVICE-SERIAL
productVersion: 13.5.1
buildVersion: 17F80
deviceSoftwareVersion: 13.5.1 (17F80)
deviceArchitecture: arm64
deviceTotalCapacity: 506585210880
deviceAvailableCapacity: 495561068544
deviceIsTransient: NO
ignored: NO
deviceIsBusy: NO
deviceIsPaired: YES
deviceIsActivated: YES
deviceActivationState: Activated
isPasscodeLocked: NO
deviceType: <DVTDeviceType:0x7fa4f702a760 Xcode.DeviceType.iPhone>
supportedDeviceFamilies: (
1,
2
)
applications: (null)
provisioningProfiles: (null)
hasInternalSupport: NO
hasWritableSystem: NO
isSupportedOS: YES
bootArgs: (null)
nextBootArgs: (null)
connected: YES
isWirelessEnabled: NO
connectionType: direct
hostname: (null)
bonjourServiceName: b4:f6:1c:85:41:29@fe80::b6f6:1cff:fe85:4129._apple-mobdev2._tcp.local.
activeProxiedDevice: (null)
} (13.5.1 (17F80))
2020-07-02 17:16:17.566 xcodebuild[61524:5395220] [MT] IDETestOperationsObserverDebug: (9CF7D1B4-B881-40AC-BE4E-6BD5E873C84B) Finished requesting crash reports. Continuing with testing.
2020-07-02 17:16:58.380 xcodebuild[61524:5395220] [MT] IDETestOperationsObserverDebug: ((null)) Failed to create file for Session- log from template /Library/Developer/Xcode/DerivedData/WebDriverAgent-bxwwbtcppjwivvfmpwrerqpjiope/Logs/Test/Test-WebDriverAgentRunner-2020.07.02_17-16-15-+0700.xcresult/Staging/1_Test/Diagnostics/WebDriverAgentRunner-47B7A0D2-AFDD-4C70-ADD4-BDE6E0DFE517/WebDriverAgentRunner-72C81C5F-43E4-4049-84EB-824F613FA4B3/Session-WebDriverAgentRunner-2020-07-02_171658-XXXXXX.log. Error: No such file or directory

2020-07-02T10:16:58.381Z ERR/device-ios:resources:service 61523 [DEVICE-SERIAL] 2020-07-02 17:16:17.546 xcodebuild[61524:5395403] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
/Library/Developer/Xcode/DerivedData/WebDriverAgent-bxwwbtcppjwivvfmpwrerqpjiope/Logs/Test/Test-WebDriverAgentRunner-2020.07.02_17-16-15-+0700.xcresult/Staging/1_Test/Diagnostics/WebDriverAgentRunner-47B7A0D2-AFDD-4C70-ADD4-BDE6E0DFE517/WebDriverAgentRunner-72C81C5F-43E4-4049-84EB-824F613FA4B3/Session-WebDriverAgentRunner-2020-07-02_171617-lKK3dc.log
2020-07-02 17:16:17.547 xcodebuild[61524:5395220] [MT] IDETestOperationsObserverDebug: (9CF7D1B4-B881-40AC-BE4E-6BD5E873C84B) Beginning test session WebDriverAgentRunner-9CF7D1B4-B881-40AC-BE4E-6BD5E873C84B at 2020-07-02 17:16:17.547 with Xcode 11E608c on target 📱<DVTiOSDevice (0x7fa4f7558e30), iPad Pro 2 - 0001, iPad, 13.5.1 (17F80), DEVICE-SERIAL> {
deviceSerialNumber: DLXWT014HPQJ
identifier: DEVICE-SERIAL
deviceClass: iPad
deviceName: iPad Pro 2 - 0001
deviceIdentifier: DEVICE-SERIAL
productVersion: 13.5.1
buildVersion: 17F80
deviceSoftwareVersion: 13.5.1 (17F80)
deviceArchitecture: arm64
deviceTotalCapacity: 506585210880
deviceAvailableCapacity: 495561068544
deviceIsTransient: NO
ignored: NO
deviceIsBusy: NO
deviceIsPaired: YES
deviceIsActivated: YES
deviceActivationState: Activated
isPasscodeLocked: NO
deviceType: <DVTDeviceType:0x7fa4f702a760 Xcode.DeviceType.iPhone>
supportedDeviceFamilies: (
1,
2
)
applications: (null)
provisioningProfiles: (null)
hasInternalSupport: NO
hasWritableSystem: NO
isSupportedOS: YES
bootArgs: (null)
nextBootArgs: (null)
connected: YES
isWirelessEnabled: NO
connectionType: direct
hostname: (null)
bonjourServiceName: b4:f6:1c:85:41:29@fe80::b6f6:1cff:fe85:4129._apple-mobdev2._tcp.local.
activeProxiedDevice: (null)
} (13.5.1 (17F80))
2020-07-02 17:16:17.566 xcodebuild[61524:5395220] [MT] IDETestOperationsObserverDebug: (9CF7D1B4-B881-40AC-BE4E-6BD5E873C84B) Finished requesting crash reports. Continuing with testing.
2020-07-02 17:16:58.380 xcodebuild[61524:5395220] [MT] IDETestOperationsObserverDebug: ((null)) Failed to create file for Session- log from template /Library/Developer/Xcode/DerivedData/WebDriverAgent-bxwwbtcppjwivvfmpwrerqpjiope/Logs/Test/Test-WebDriverAgentRunner-2020.07.02_17-16-15-+0700.xcresult/Staging/1_Test/Diagnostics/WebDriverAgentRunner-47B7A0D2-AFDD-4C70-ADD4-BDE6E0DFE517/WebDriverAgentRunner-72C81C5F-43E4-4049-84EB-824F613FA4B3/Session-WebDriverAgentRunner-2020-07-02_171658-XXXXXX.log. Error: No such file or directory
2020-07-02 17:16:58.381 xcodebuild[61524:5395220] [MT] IDETestOperationsObserverDebug: (903C2E5F-E48A-4938-9E27-ABE7BC9B4CF5) Beginning test session WebDriverAgentRunner-903C2E5F-E48A-4938-9E27-ABE7BC9B4CF5 at 2020-07-02 17:16:58.381 with Xcode 11E608c on target 📱<DVTiOSDevice (0x7fa4f7558e30), iPad Pro 2 - 0001, iPad, 13.5.1 (17F80), DEVICE-SERIAL> {
deviceSerialNumber: DLXWT014HPQJ
identifier: DEVICE-SERIAL
deviceClass: iPad
deviceName: iPad Pro 2 - 0001
deviceIdentifier: DEVICE-SERIAL
productVersion: 13.5.1
buildVersion: 17F80
deviceSoftwareVersion: 13.5.1 (17F80)
deviceArchitecture: arm64
deviceTotalCapacity: 506585210880
deviceAvailableCapacity: 495561068544
deviceIsTransient: NO
ignored: NO
deviceIsBusy: NO
deviceIsPaired: YES
deviceIsActivated: YES
deviceActivationState: Activated
isPasscodeLocked: NO
deviceType: <DVTDeviceType:0x7fa4f702a760 Xcode.DeviceType.iPhone>
supportedDeviceFamilies: (
1,
2
)
applications: {(
<DTDKApplication: 0x7fa4f7096280>: Apple Store (/private/var/containers/Bundle/Application/CCD83AAE-F6E4-4470-A7C7-E0703F1019BB/Apple Store.app),
<DTDKApplication: 0x7fa4f740b700>: Clips (/private/var/containers/Bundle/Application/E4187F35-E48C-477C-A423-2F4E61918870/Clips.app),
<DTDKApplication: 0x7fa4f74f7050>: GarageBand (/private/var/containers/Bundle/Application/32C64F51-793F-46DB-B26E-F4E72F3DB763/MobileGarageBand.app),
<DTDKApplication: 0x7fa4f705a1a0>: iMovie (/private/var/containers/Bundle/Application/A6D275BC-8C9F-4B7B-A1CC-C05BB10724BE/iMovie.app),
<DTDKApplication: 0x7fa4f742b040>: Netflix (/private/var/containers/Bundle/Application/C4C56AEB-D301-4548-9349-02866760BC0F/Argo.app),
<DTDKApplication: 0x7fa4f7424430>: myFPT (/private/var/containers/Bundle/Application/1C0F076A-EC30-49BB-88BA-10BCE2EBA5C6/2XAPPRelease.app),
<DTDKApplication: 0x7fa4f74a16e0>: BodyweightMobile (/private/var/containers/Bundle/Application/BE6E09BB-318B-4445-9E69-576C7B3354DE/BodyweightMobile.app),
<DTDKApplication: 0x7fa4f704ea40>: WebDriverAgentRunner-Runner (/private/var/containers/Bundle/Application/61C2C015-70BD-4E90-8A1E-03880C54B9A2/WebDriverAgentRunner-Runner.app),
<DTDKApplication: 0x7fa4f70f1a90>: iTunes U (/private/var/containers/Bundle/Application/38A209A2-7B0B-4B94-BA1E-E1AD2D66B739/iTunesU.app),
<DTDKApplication: 0x7fa4f741b760>: Pages (/private/var/containers/Bundle/Application/23EE5EDE-37E1-4FE5-B17B-5AEECBDC796E/Pages.app),
<DTDKApplication: 0x7fa4f740c3a0>: Keynote (/private/var/containers/Bundle/Application/0E12DF6F-2078-40C1-9ABD-755FE94B43F1/Keynote.app),
<DTDKApplication: 0x7fa4f7423e90>: Numbers (/private/var/containers/Bundle/Application/3D7FE071-EAE7-4767-896C-D4195FCA956F/Numbers.app),
<DTDKApplication: 0x7fa4f7067e00>: PMContest (/private/var/containers/Bundle/Application/5CB4092A-A397-4EA3-AF8F-738449D4EE57/AuthenticProjectManager.app)
)}
provisioningProfiles: (
"iOS Team Provisioning Profile: *",
"iOS Team Provisioning Profile: *",
"server10.provisioning",
"iOS Team Provisioning Profile: *",
"iOS Team Provisioning Profile: *",
AdHoc5,
"iOS Team Inhouse Provisioning Profile: ",
"10.16.89.27",
"iOS Team Provisioning Profile: *",
"iOS Team Provisioning Profile: *",
"iOS Team Provisioning Profile: *"
)
hasInternalSupport: NO
hasWritableSystem: NO
isSupportedOS: YES
bootArgs: (null)
nextBootArgs: (null)
connected: YES
isWirelessEnabled: NO
connectionType: direct
hostname: (null)
bonjourServiceName: b4:f6:1c:85:41:29@fe80::b6f6:1cff:fe85:4129._apple-mobdev2._tcp.local.
activeProxiedDevice: (null)
} (13.5.1 (17F80))

2020-07-02T10:16:58.385Z ERR/device-ios:resources:service 61523 [DEVICE-SERIAL] 2020-07-02 17:16:17.546 xcodebuild[61524:5395403] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
/Library/Developer/Xcode/DerivedData/WebDriverAgent-bxwwbtcppjwivvfmpwrerqpjiope/Logs/Test/Test-WebDriverAgentRunner-2020.07.02_17-16-15-+0700.xcresult/Staging/1_Test/Diagnostics/WebDriverAgentRunner-47B7A0D2-AFDD-4C70-ADD4-BDE6E0DFE517/WebDriverAgentRunner-72C81C5F-43E4-4049-84EB-824F613FA4B3/Session-WebDriverAgentRunner-2020-07-02_171617-lKK3dc.log
2020-07-02 17:16:17.547 xcodebuild[61524:5395220] [MT] IDETestOperationsObserverDebug: (9CF7D1B4-B881-40AC-BE4E-6BD5E873C84B) Beginning test session WebDriverAgentRunner-9CF7D1B4-B881-40AC-BE4E-6BD5E873C84B at 2020-07-02 17:16:17.547 with Xcode 11E608c on target 📱<DVTiOSDevice (0x7fa4f7558e30), iPad Pro 2 - 0001, iPad, 13.5.1 (17F80), DEVICE-SERIAL> {
deviceSerialNumber: DLXWT014HPQJ
identifier: DEVICE-SERIAL
deviceClass: iPad
deviceName: iPad Pro 2 - 0001
deviceIdentifier: DEVICE-SERIAL
productVersion: 13.5.1
buildVersion: 17F80
deviceSoftwareVersion: 13.5.1 (17F80)
deviceArchitecture: arm64
deviceTotalCapacity: 506585210880
deviceAvailableCapacity: 495561068544
deviceIsTransient: NO
ignored: NO
deviceIsBusy: NO
deviceIsPaired: YES
deviceIsActivated: YES
deviceActivationState: Activated
isPasscodeLocked: NO
deviceType: <DVTDeviceType:0x7fa4f702a760 Xcode.DeviceType.iPhone>
supportedDeviceFamilies: (
1,
2
)
applications: (null)
provisioningProfiles: (null)
hasInternalSupport: NO
hasWritableSystem: NO
isSupportedOS: YES
bootArgs: (null)
nextBootArgs: (null)
connected: YES
isWirelessEnabled: NO
connectionType: direct
hostname: (null)
bonjourServiceName: b4:f6:1c:85:41:29@fe80::b6f6:1cff:fe85:4129._apple-mobdev2._tcp.local.
activeProxiedDevice: (null)
} (13.5.1 (17F80))
2020-07-02 17:16:17.566 xcodebuild[61524:5395220] [MT] IDETestOperationsObserverDebug: (9CF7D1B4-B881-40AC-BE4E-6BD5E873C84B) Finished requesting crash reports. Continuing with testing.
2020-07-02 17:16:58.380 xcodebuild[61524:5395220] [MT] IDETestOperationsObserverDebug: ((null)) Failed to create file for Session- log from template /Library/Developer/Xcode/DerivedData/WebDriverAgent-bxwwbtcppjwivvfmpwrerqpjiope/Logs/Test/Test-WebDriverAgentRunner-2020.07.02_17-16-15-+0700.xcresult/Staging/1_Test/Diagnostics/WebDriverAgentRunner-47B7A0D2-AFDD-4C70-ADD4-BDE6E0DFE517/WebDriverAgentRunner-72C81C5F-43E4-4049-84EB-824F613FA4B3/Session-WebDriverAgentRunner-2020-07-02_171658-XXXXXX.log. Error: No such file or directory
2020-07-02 17:16:58.381 xcodebuild[61524:5395220] [MT] IDETestOperationsObserverDebug: (903C2E5F-E48A-4938-9E27-ABE7BC9B4CF5) Beginning test session WebDriverAgentRunner-903C2E5F-E48A-4938-9E27-ABE7BC9B4CF5 at 2020-07-02 17:16:58.381 with Xcode 11E608c on target 📱<DVTiOSDevice (0x7fa4f7558e30), iPad Pro 2 - 0001, iPad, 13.5.1 (17F80), DEVICE-SERIAL> {
deviceSerialNumber: DLXWT014HPQJ
identifier: DEVICE-SERIAL
deviceClass: iPad
deviceName: iPad Pro 2 - 0001
deviceIdentifier: DEVICE-SERIAL
productVersion: 13.5.1
buildVersion: 17F80
deviceSoftwareVersion: 13.5.1 (17F80)
deviceArchitecture: arm64
deviceTotalCapacity: 506585210880
deviceAvailableCapacity: 495561068544
deviceIsTransient: NO
ignored: NO
deviceIsBusy: NO
deviceIsPaired: YES
deviceIsActivated: YES
deviceActivationState: Activated
isPasscodeLocked: NO
deviceType: <DVTDeviceType:0x7fa4f702a760 Xcode.DeviceType.iPhone>
supportedDeviceFamilies: (
1,
2
)
applications: {(
<DTDKApplication: 0x7fa4f7096280>: Apple Store (/private/var/containers/Bundle/Application/CCD83AAE-F6E4-4470-A7C7-E0703F1019BB/Apple Store.app),
<DTDKApplication: 0x7fa4f740b700>: Clips (/private/var/containers/Bundle/Application/E4187F35-E48C-477C-A423-2F4E61918870/Clips.app),
<DTDKApplication: 0x7fa4f74f7050>: GarageBand (/private/var/containers/Bundle/Application/32C64F51-793F-46DB-B26E-F4E72F3DB763/MobileGarageBand.app),
<DTDKApplication: 0x7fa4f705a1a0>: iMovie (/private/var/containers/Bundle/Application/A6D275BC-8C9F-4B7B-A1CC-C05BB10724BE/iMovie.app),
<DTDKApplication: 0x7fa4f742b040>: Netflix (/private/var/containers/Bundle/Application/C4C56AEB-D301-4548-9349-02866760BC0F/Argo.app),
<DTDKApplication: 0x7fa4f7424430>: myFPT (/private/var/containers/Bundle/Application/1C0F076A-EC30-49BB-88BA-10BCE2EBA5C6/2XAPPRelease.app),
<DTDKApplication: 0x7fa4f74a16e0>: BodyweightMobile (/private/var/containers/Bundle/Application/BE6E09BB-318B-4445-9E69-576C7B3354DE/BodyweightMobile.app),
<DTDKApplication: 0x7fa4f704ea40>: WebDriverAgentRunner-Runner (/private/var/containers/Bundle/Application/61C2C015-70BD-4E90-8A1E-03880C54B9A2/WebDriverAgentRunner-Runner.app),
<DTDKApplication: 0x7fa4f70f1a90>: iTunes U (/private/var/containers/Bundle/Application/38A209A2-7B0B-4B94-BA1E-E1AD2D66B739/iTunesU.app),
<DTDKApplication: 0x7fa4f741b760>: Pages (/private/var/containers/Bundle/Application/23EE5EDE-37E1-4FE5-B17B-5AEECBDC796E/Pages.app),
<DTDKApplication: 0x7fa4f740c3a0>: Keynote (/private/var/containers/Bundle/Application/0E12DF6F-2078-40C1-9ABD-755FE94B43F1/Keynote.app),
<DTDKApplication: 0x7fa4f7423e90>: Numbers (/private/var/containers/Bundle/Application/3D7FE071-EAE7-4767-896C-D4195FCA956F/Numbers.app),
<DTDKApplication: 0x7fa4f7067e00>: PMContest (/private/var/containers/Bundle/Application/5CB4092A-A397-4EA3-AF8F-738449D4EE57/AuthenticProjectManager.app)
)}
provisioningProfiles: (
"iOS Team Provisioning Profile: *",
"iOS Team Provisioning Profile: *",
"server10.provisioning",
"iOS Team Provisioning Profile: *",
"iOS Team Provisioning Profile: *",
AdHoc5,
"iOS Team Inhouse Provisioning Profile: ",
"10.16.89.27",
"iOS Team Provisioning Profile: *",
"iOS Team Provisioning Profile: *",
"iOS Team Provisioning Profile: *"
)
hasInternalSupport: NO
hasWritableSystem: NO
isSupportedOS: YES
bootArgs: (null)
nextBootArgs: (null)
connected: YES
isWirelessEnabled: NO
connectionType: direct
hostname: (null)
bonjourServiceName: b4:f6:1c:85:41:29@fe80::b6f6:1cff:fe85:4129._apple-mobdev2._tcp.local.
activeProxiedDevice: (null)
} (13.5.1 (17F80))
2020-07-02 17:16:58.385 xcodebuild[61524:5395220] [MT] IDETestOperationsObserverDebug: (903C2E5F-E48A-4938-9E27-ABE7BC9B4CF5) Finished requesting crash reports. Continuing with testing.

2020-07-02T10:16:58.926Z INF/device-ios:resources:service 56550 [6174b52c4bed7e44e0dd9e58a7cf378c6c960536] 2020-07-02 17:16:58.974666+0700 WebDriverAgentRunner-Runner[738:199962] Reachability Flag Status: -R ------- networkStatusForFlags

2020-07-02T10:17:00.724Z INF/device-ios:resources:service 61523 [DEVICE-SERIAL] 2020-07-02 17:17:00.590933+0700 WebDriverAgentRunner-Runner[70972:823660] Running tests...

2020-07-02T10:17:00.746Z INF/device-ios:resources:service 61523 [DEVICE-SERIAL] objc[70972]: Class Reachability is implemented in both /private/var/containers/Bundle/Application/61C2C015-70BD-4E90-8A1E-03880C54B9A2/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/WebDriverAgentLib (0x104e1f5f0) and /var/containers/Bundle/Application/61C2C015-70BD-4E90-8A1E-03880C54B9A2/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/WebDriverAgentRunner (0x104d708e0). One of the two will be used. Which one is undefined.

2020-07-02T10:17:01.148Z INF/device-ios:resources:service 61523 [DEVICE-SERIAL]
Restarting after unexpected exit, crash, or test timeout in UITestingUITests/testRunner; summary will include totals from previous launches.

2020-07-02T10:17:01.149Z INF/device-ios:resources:service 61523 [DEVICE-SERIAL] Test Suite 'Selected tests' started at 2020-07-02 17:17:01.015

2020-07-02T10:17:01.149Z INF/device-ios:resources:service 61523 [DEVICE-SERIAL] Test Suite 'WebDriverAgentRunner.xctest' started at 2020-07-02 17:17:01.016

2020-07-02T10:17:01.150Z INF/device-ios:resources:service 61523 [DEVICE-SERIAL] Test Suite 'WebDriverAgentRunner.xctest' failed at 2020-07-02 17:17:01.017.
Executed 1 test, with 1 failure (0 unexpected) in 0.000 (0.000) seconds

2020-07-02T10:17:01.150Z INF/device-ios:resources:service 61523 [DEVICE-SERIAL] Test Suite 'WebDriverAgentLib.framework' started at 2020-07-02 17:17:01.017

2020-07-02T10:17:01.150Z INF/device-ios:resources:service 61523 [DEVICE-SERIAL] Test Suite 'WebDriverAgentLib.framework' passed at 2020-07-02 17:17:01.017.
Executed 0 tests, with 0 failures (0 unexpected) in 0.000 (0.000) seconds

2020-07-02T10:17:01.151Z INF/device-ios:resources:service 61523 [DEVICE-SERIAL] Test Suite 'Selected tests' failed at 2020-07-02 17:17:01.018.
Executed 1 test, with 1 failure (0 unexpected) in 0.000 (0.002) seconds

2020-07-02T10:17:01.157Z ERR/device-ios:resources:service 61523 [DEVICE-SERIAL] 2020-07-02 17:16:17.546 xcodebuild[61524:5395403] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
/Library/Developer/Xcode/DerivedData/WebDriverAgent-bxwwbtcppjwivvfmpwrerqpjiope/Logs/Test/Test-WebDriverAgentRunner-2020.07.02_17-16-15-+0700.xcresult/Staging/1_Test/Diagnostics/WebDriverAgentRunner-47B7A0D2-AFDD-4C70-ADD4-BDE6E0DFE517/WebDriverAgentRunner-72C81C5F-43E4-4049-84EB-824F613FA4B3/Session-WebDriverAgentRunner-2020-07-02_171617-lKK3dc.log
2020-07-02 17:16:17.547 xcodebuild[61524:5395220] [MT] IDETestOperationsObserverDebug: (9CF7D1B4-B881-40AC-BE4E-6BD5E873C84B) Beginning test session WebDriverAgentRunner-9CF7D1B4-B881-40AC-BE4E-6BD5E873C84B at 2020-07-02 17:16:17.547 with Xcode 11E608c on target 📱<DVTiOSDevice (0x7fa4f7558e30), iPad Pro 2 - 0001, iPad, 13.5.1 (17F80), DEVICE-SERIAL> {
deviceSerialNumber: DLXWT014HPQJ
identifier: DEVICE-SERIAL
deviceClass: iPad
deviceName: iPad Pro 2 - 0001
deviceIdentifier: DEVICE-SERIAL
productVersion: 13.5.1
buildVersion: 17F80
deviceSoftwareVersion: 13.5.1 (17F80)
deviceArchitecture: arm64
deviceTotalCapacity: 506585210880
deviceAvailableCapacity: 495561068544
deviceIsTransient: NO
ignored: NO
deviceIsBusy: NO
deviceIsPaired: YES
deviceIsActivated: YES
deviceActivationState: Activated
isPasscodeLocked: NO
deviceType: <DVTDeviceType:0x7fa4f702a760 Xcode.DeviceType.iPhone>
supportedDeviceFamilies: (
1,
2
)
applications: (null)
provisioningProfiles: (null)
hasInternalSupport: NO
hasWritableSystem: NO
isSupportedOS: YES
bootArgs: (null)
nextBootArgs: (null)
connected: YES
isWirelessEnabled: NO
connectionType: direct
hostname: (null)
bonjourServiceName: b4:f6:1c:85:41:29@fe80::b6f6:1cff:fe85:4129._apple-mobdev2._tcp.local.
activeProxiedDevice: (null)
} (13.5.1 (17F80))
2020-07-02 17:16:17.566 xcodebuild[61524:5395220] [MT] IDETestOperationsObserverDebug: (9CF7D1B4-B881-40AC-BE4E-6BD5E873C84B) Finished requesting crash reports. Continuing with testing.
2020-07-02 17:16:58.380 xcodebuild[61524:5395220] [MT] IDETestOperationsObserverDebug: ((null)) Failed to create file for Session- log from template /Library/Developer/Xcode/DerivedData/WebDriverAgent-bxwwbtcppjwivvfmpwrerqpjiope/Logs/Test/Test-WebDriverAgentRunner-2020.07.02_17-16-15-+0700.xcresult/Staging/1_Test/Diagnostics/WebDriverAgentRunner-47B7A0D2-AFDD-4C70-ADD4-BDE6E0DFE517/WebDriverAgentRunner-72C81C5F-43E4-4049-84EB-824F613FA4B3/Session-WebDriverAgentRunner-2020-07-02_171658-XXXXXX.log. Error: No such file or directory
2020-07-02 17:16:58.381 xcodebuild[61524:5395220] [MT] IDETestOperationsObserverDebug: (903C2E5F-E48A-4938-9E27-ABE7BC9B4CF5) Beginning test session WebDriverAgentRunner-903C2E5F-E48A-4938-9E27-ABE7BC9B4CF5 at 2020-07-02 17:16:58.381 with Xcode 11E608c on target 📱<DVTiOSDevice (0x7fa4f7558e30), iPad Pro 2 - 0001, iPad, 13.5.1 (17F80), DEVICE-SERIAL> {
deviceSerialNumber: DLXWT014HPQJ
identifier: DEVICE-SERIAL
deviceClass: iPad
deviceName: iPad Pro 2 - 0001
deviceIdentifier: DEVICE-SERIAL
productVersion: 13.5.1
buildVersion: 17F80
deviceSoftwareVersion: 13.5.1 (17F80)
deviceArchitecture: arm64
deviceTotalCapacity: 506585210880
deviceAvailableCapacity: 495561068544
deviceIsTransient: NO
ignored: NO
deviceIsBusy: NO
deviceIsPaired: YES
deviceIsActivated: YES
deviceActivationState: Activated
isPasscodeLocked: NO
deviceType: <DVTDeviceType:0x7fa4f702a760 Xcode.DeviceType.iPhone>
supportedDeviceFamilies: (
1,
2
)
applications: {(
<DTDKApplication: 0x7fa4f7096280>: Apple Store (/private/var/containers/Bundle/Application/CCD83AAE-F6E4-4470-A7C7-E0703F1019BB/Apple Store.app),
<DTDKApplication: 0x7fa4f740b700>: Clips (/private/var/containers/Bundle/Application/E4187F35-E48C-477C-A423-2F4E61918870/Clips.app),
<DTDKApplication: 0x7fa4f74f7050>: GarageBand (/private/var/containers/Bundle/Application/32C64F51-793F-46DB-B26E-F4E72F3DB763/MobileGarageBand.app),
<DTDKApplication: 0x7fa4f705a1a0>: iMovie (/private/var/containers/Bundle/Application/A6D275BC-8C9F-4B7B-A1CC-C05BB10724BE/iMovie.app),
<DTDKApplication: 0x7fa4f742b040>: Netflix (/private/var/containers/Bundle/Application/C4C56AEB-D301-4548-9349-02866760BC0F/Argo.app),
<DTDKApplication: 0x7fa4f7424430>: myFPT (/private/var/containers/Bundle/Application/1C0F076A-EC30-49BB-88BA-10BCE2EBA5C6/2XAPPRelease.app),
<DTDKApplication: 0x7fa4f74a16e0>: BodyweightMobile (/private/var/containers/Bundle/Application/BE6E09BB-318B-4445-9E69-576C7B3354DE/BodyweightMobile.app),
<DTDKApplication: 0x7fa4f704ea40>: WebDriverAgentRunner-Runner (/private/var/containers/Bundle/Application/61C2C015-70BD-4E90-8A1E-03880C54B9A2/WebDriverAgentRunner-Runner.app),
<DTDKApplication: 0x7fa4f70f1a90>: iTunes U (/private/var/containers/Bundle/Application/38A209A2-7B0B-4B94-BA1E-E1AD2D66B739/iTunesU.app),
<DTDKApplication: 0x7fa4f741b760>: Pages (/private/var/containers/Bundle/Application/23EE5EDE-37E1-4FE5-B17B-5AEECBDC796E/Pages.app),
<DTDKApplication: 0x7fa4f740c3a0>: Keynote (/private/var/containers/Bundle/Application/0E12DF6F-2078-40C1-9ABD-755FE94B43F1/Keynote.app),
<DTDKApplication: 0x7fa4f7423e90>: Numbers (/private/var/containers/Bundle/Application/3D7FE071-EAE7-4767-896C-D4195FCA956F/Numbers.app),
<DTDKApplication: 0x7fa4f7067e00>: PMContest (/private/var/containers/Bundle/Application/5CB4092A-A397-4EA3-AF8F-738449D4EE57/AuthenticProjectManager.app)
)}
provisioningProfiles: (
"iOS Team Provisioning Profile: *",
"iOS Team Provisioning Profile: *",
"server10.provisioning",
"iOS Team Provisioning Profile: *",
"iOS Team Provisioning Profile: *",
AdHoc5,
"iOS Team Inhouse Provisioning Profile: ",
"10.16.89.27",
"iOS Team Provisioning Profile: *",
"iOS Team Provisioning Profile: *",
"iOS Team Provisioning Profile: *"
)
hasInternalSupport: NO
hasWritableSystem: NO
isSupportedOS: YES
bootArgs: (null)
nextBootArgs: (null)
connected: YES
isWirelessEnabled: NO
connectionType: direct
hostname: (null)
bonjourServiceName: b4:f6:1c:85:41:29@fe80::b6f6:1cff:fe85:4129._apple-mobdev2._tcp.local.
activeProxiedDevice: (null)
} (13.5.1 (17F80))
2020-07-02 17:16:58.385 xcodebuild[61524:5395220] [MT] IDETestOperationsObserverDebug: (903C2E5F-E48A-4938-9E27-ABE7BC9B4CF5) Finished requesting crash reports. Continuing with testing.
2020-07-02 17:17:01.157 xcodebuild[61524:5395220] [MT] IDETestOperationsObserverDebug: 43.943 elapsed -- Testing started completed.

2020-07-02T10:17:01.158Z ERR/device-ios:resources:service 61523 [DEVICE-SERIAL] 2020-07-02 17:16:17.546 xcodebuild[61524:5395403] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
/Library/Developer/Xcode/DerivedData/WebDriverAgent-bxwwbtcppjwivvfmpwrerqpjiope/Logs/Test/Test-WebDriverAgentRunner-2020.07.02_17-16-15-+0700.xcresult/Staging/1_Test/Diagnostics/WebDriverAgentRunner-47B7A0D2-AFDD-4C70-ADD4-BDE6E0DFE517/WebDriverAgentRunner-72C81C5F-43E4-4049-84EB-824F613FA4B3/Session-WebDriverAgentRunner-2020-07-02_171617-lKK3dc.log
2020-07-02 17:16:17.547 xcodebuild[61524:5395220] [MT] IDETestOperationsObserverDebug: (9CF7D1B4-B881-40AC-BE4E-6BD5E873C84B) Beginning test session WebDriverAgentRunner-9CF7D1B4-B881-40AC-BE4E-6BD5E873C84B at 2020-07-02 17:16:17.547 with Xcode 11E608c on target 📱<DVTiOSDevice (0x7fa4f7558e30), iPad Pro 2 - 0001, iPad, 13.5.1 (17F80), DEVICE-SERIAL> {
deviceSerialNumber: DLXWT014HPQJ
identifier: DEVICE-SERIAL
deviceClass: iPad
deviceName: iPad Pro 2 - 0001
deviceIdentifier: DEVICE-SERIAL
productVersion: 13.5.1
buildVersion: 17F80
deviceSoftwareVersion: 13.5.1 (17F80)
deviceArchitecture: arm64
deviceTotalCapacity: 506585210880
deviceAvailableCapacity: 495561068544
deviceIsTransient: NO
ignored: NO
deviceIsBusy: NO
deviceIsPaired: YES
deviceIsActivated: YES
deviceActivationState: Activated
isPasscodeLocked: NO
deviceType: <DVTDeviceType:0x7fa4f702a760 Xcode.DeviceType.iPhone>
supportedDeviceFamilies: (
1,
2
)
applications: (null)
provisioningProfiles: (null)
hasInternalSupport: NO
hasWritableSystem: NO
isSupportedOS: YES
bootArgs: (null)
nextBootArgs: (null)
connected: YES
isWirelessEnabled: NO
connectionType: direct
hostname: (null)
bonjourServiceName: b4:f6:1c:85:41:29@fe80::b6f6:1cff:fe85:4129._apple-mobdev2._tcp.local.
activeProxiedDevice: (null)
} (13.5.1 (17F80))
2020-07-02 17:16:17.566 xcodebuild[61524:5395220] [MT] IDETestOperationsObserverDebug: (9CF7D1B4-B881-40AC-BE4E-6BD5E873C84B) Finished requesting crash reports. Continuing with testing.
2020-07-02 17:16:58.380 xcodebuild[61524:5395220] [MT] IDETestOperationsObserverDebug: ((null)) Failed to create file for Session- log from template /Library/Developer/Xcode/DerivedData/WebDriverAgent-bxwwbtcppjwivvfmpwrerqpjiope/Logs/Test/Test-WebDriverAgentRunner-2020.07.02_17-16-15-+0700.xcresult/Staging/1_Test/Diagnostics/WebDriverAgentRunner-47B7A0D2-AFDD-4C70-ADD4-BDE6E0DFE517/WebDriverAgentRunner-72C81C5F-43E4-4049-84EB-824F613FA4B3/Session-WebDriverAgentRunner-2020-07-02_171658-XXXXXX.log. Error: No such file or directory
2020-07-02 17:16:58.381 xcodebuild[61524:5395220] [MT] IDETestOperationsObserverDebug: (903C2E5F-E48A-4938-9E27-ABE7BC9B4CF5) Beginning test session WebDriverAgentRunner-903C2E5F-E48A-4938-9E27-ABE7BC9B4CF5 at 2020-07-02 17:16:58.381 with Xcode 11E608c on target 📱<DVTiOSDevice (0x7fa4f7558e30), iPad Pro 2 - 0001, iPad, 13.5.1 (17F80), DEVICE-SERIAL> {
deviceSerialNumber: DLXWT014HPQJ
identifier: DEVICE-SERIAL
deviceClass: iPad
deviceName: iPad Pro 2 - 0001
deviceIdentifier: DEVICE-SERIAL
productVersion: 13.5.1
buildVersion: 17F80
deviceSoftwareVersion: 13.5.1 (17F80)
deviceArchitecture: arm64
deviceTotalCapacity: 506585210880
deviceAvailableCapacity: 495561068544
deviceIsTransient: NO
ignored: NO
deviceIsBusy: NO
deviceIsPaired: YES
deviceIsActivated: YES
deviceActivationState: Activated
isPasscodeLocked: NO
deviceType: <DVTDeviceType:0x7fa4f702a760 Xcode.DeviceType.iPhone>
supportedDeviceFamilies: (
1,
2
)
applications: {(
<DTDKApplication: 0x7fa4f7096280>: Apple Store (/private/var/containers/Bundle/Application/CCD83AAE-F6E4-4470-A7C7-E0703F1019BB/Apple Store.app),
<DTDKApplication: 0x7fa4f740b700>: Clips (/private/var/containers/Bundle/Application/E4187F35-E48C-477C-A423-2F4E61918870/Clips.app),
<DTDKApplication: 0x7fa4f74f7050>: GarageBand (/private/var/containers/Bundle/Application/32C64F51-793F-46DB-B26E-F4E72F3DB763/MobileGarageBand.app),
<DTDKApplication: 0x7fa4f705a1a0>: iMovie (/private/var/containers/Bundle/Application/A6D275BC-8C9F-4B7B-A1CC-C05BB10724BE/iMovie.app),
<DTDKApplication: 0x7fa4f742b040>: Netflix (/private/var/containers/Bundle/Application/C4C56AEB-D301-4548-9349-02866760BC0F/Argo.app),
<DTDKApplication: 0x7fa4f7424430>: myFPT (/private/var/containers/Bundle/Application/1C0F076A-EC30-49BB-88BA-10BCE2EBA5C6/2XAPPRelease.app),
<DTDKApplication: 0x7fa4f74a16e0>: BodyweightMobile (/private/var/containers/Bundle/Application/BE6E09BB-318B-4445-9E69-576C7B3354DE/BodyweightMobile.app),
<DTDKApplication: 0x7fa4f704ea40>: WebDriverAgentRunner-Runner (/private/var/containers/Bundle/Application/61C2C015-70BD-4E90-8A1E-03880C54B9A2/WebDriverAgentRunner-Runner.app),
<DTDKApplication: 0x7fa4f70f1a90>: iTunes U (/private/var/containers/Bundle/Application/38A209A2-7B0B-4B94-BA1E-E1AD2D66B739/iTunesU.app),
<DTDKApplication: 0x7fa4f741b760>: Pages (/private/var/containers/Bundle/Application/23EE5EDE-37E1-4FE5-B17B-5AEECBDC796E/Pages.app),
<DTDKApplication: 0x7fa4f740c3a0>: Keynote (/private/var/containers/Bundle/Application/0E12DF6F-2078-40C1-9ABD-755FE94B43F1/Keynote.app),
<DTDKApplication: 0x7fa4f7423e90>: Numbers (/private/var/containers/Bundle/Application/3D7FE071-EAE7-4767-896C-D4195FCA956F/Numbers.app),
<DTDKApplication: 0x7fa4f7067e00>: PMContest (/private/var/containers/Bundle/Application/5CB4092A-A397-4EA3-AF8F-738449D4EE57/AuthenticProjectManager.app)
)}
provisioningProfiles: (
"iOS Team Provisioning Profile: *",
"iOS Team Provisioning Profile: *",
"server10.provisioning",
"iOS Team Provisioning Profile: *",
"iOS Team Provisioning Profile: *",
AdHoc5,
"iOS Team Inhouse Provisioning Profile: ",
"10.16.89.27",
"iOS Team Provisioning Profile: *",
"iOS Team Provisioning Profile: *",
"iOS Team Provisioning Profile: *"
)
hasInternalSupport: NO
hasWritableSystem: NO
isSupportedOS: YES
bootArgs: (null)
nextBootArgs: (null)
connected: YES
isWirelessEnabled: NO
connectionType: direct
hostname: (null)
bonjourServiceName: b4:f6:1c:85:41:29@fe80::b6f6:1cff:fe85:4129._apple-mobdev2._tcp.local.
activeProxiedDevice: (null)
} (13.5.1 (17F80))
2020-07-02 17:16:58.385 xcodebuild[61524:5395220] [MT] IDETestOperationsObserverDebug: (903C2E5F-E48A-4938-9E27-ABE7BC9B4CF5) Finished requesting crash reports. Continuing with testing.
2020-07-02 17:17:01.157 xcodebuild[61524:5395220] [MT] IDETestOperationsObserverDebug: 43.943 elapsed -- Testing started completed.
2020-07-02 17:17:01.157 xcodebuild[61524:5395220] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
2020-07-02 17:17:01.157 xcodebuild[61524:5395220] [MT] IDETestOperationsObserverDebug: 43.943 sec, +43.943 sec -- end

2020-07-02T10:17:01.205Z INF/device-ios:resources:service 61523 [DEVICE-SERIAL]
Test session results, code coverage, and logs:
/Library/Developer/Xcode/DerivedData/WebDriverAgent-bxwwbtcppjwivvfmpwrerqpjiope/Logs/Test/Test-WebDriverAgentRunner-2020.07.02_17-16-15-+0700.xcresult
`

Is there a way to use XCEventGenerator in WDA on Xcode11.6

This method in WebDriverAgent/WebDriverAgentLib/Commands/FBElementCommands.m a little bit slow

  • (id)handleTap:(FBRouteRequest *)request
    {
    FBElementCache *elementCache = request.session.elementCache;
    CGPoint tapPoint = CGPointMake((CGFloat)[request.arguments[@"x"] doubleValue], (CGFloat)[request.arguments[@"y"] doubleValue]);
    XCUIElement *element = [elementCache elementForUUID:request.parameters[@"uuid"]];
    if (nil == element) {
    XCUICoordinate *tapCoordinate = [self.class gestureCoordinateWithCoordinate:tapPoint application:request.session.activeApplication shouldApplyOrientationWorkaround:isSDKVersionLessThan(@"11.0")];
    [tapCoordinate tap];
    } else {
    NSError *error;
    if (![element fb_tapCoordinate:tapPoint error:&error]) {
    return FBResponseWithStatus([FBCommandStatus invalidElementStateErrorWithMessage:error.description traceback:nil]);
    }
    }
    return FBResponseWithOK();
    }

If it is modified to:

  • (id)handleTap:(FBRouteRequest *)request
    {
    //FBElementCache *elementCache = request.session.elementCache;
    CGPoint tapPoint = CGPointMake((CGFloat)[request.arguments[@"x"] doubleValue], (CGFloat)[request.arguments[@"y"] doubleValue]);
    //XCUIElement *element = [elementCache elementForUUID:request.parameters[@"uuid"]];
    //if (nil == element) {
    // XCUICoordinate *tapCoordinate = [self.class gestureCoordinateWithCoordinate:tapPoint application:request.session.activeApplication shouldApplyOrientationWorkaround:isSDKVersionLessThan(@"11.0")];
    // [tapCoordinate tap];
    //} else {
    // NSError *error;
    // if (![element fb_tapCoordinate:tapPoint error:&error]) {
    // return FBResponseWithStatus([FBCommandStatus invalidElementStateErrorWithMessage:error.description traceback:nil]);
    // }
    //}
    [[XCEventGenerator sharedGenerator] pressAtPoint:tapPoint forDuration:0 liftAtPoint:tapPoint velocity:1000 orientation:0 name:@"drag" handler:^(XCSynthesizedEventRecord *record,NSError *commandError) {}];
    return FBResponseWithOK();
    }

The click action would be much more faster, however this code only working on version below Xcode 10.1 since XCEventGenerator has been removed since Xcode10.2

In version higher than 10.1 would get following error:

Undefined symbols for architecture x86_64:
"OBJC_CLASS$_XCEventGenerator", referenced from:
objc-class-ref in FBCustomCommands.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

The workaround mention in this works for tap, but caused crash on test startup
facebook/idb#553
I wonder whether there is a way to make it working in latest in Xcode 11.6

iPhone 12 - PickerWheel throwing error - Picker wheel value has not been changed after 2 seconds timeout

PickerWheel throwing error - Picker wheel value has not been changed after 2 seconds timeout

org.openqa.selenium.InvalidElementStateException: Error Domain=com.facebook.WebDriverAgent Code=1 "Picker wheel value has not been changed after 2 seconds timeout" UserInfo={NSLocalizedDescription=Picker wheel value has not been changed after 2 seconds timeout}
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: 'B06SES20', ip: 'fd00:688f:2ed1:1682:28d5:74be:3f6e:aeb5%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.7', java.version: '1.8.0_251'
Driver info: io.appium.java_client.AppiumDriver
Capabilities {autoDismissAlerts: false, automationName: XCUITest, browserName: , bundleId: ..., databaseEnabled: false, deviceName: ERROR:DeviceAutonotfound!, fullReset: false, javascriptEnabled: true, locationContextEnabled: false, locationServicesAuthorized: true, locationServicesEnabled: true, networkConnectionEnabled: false, newCommandTimeout: 120, noReset: false, platform: MAC, platformName: iOS, platformVersion: 14.2, takesScreenshot: true, udid: ..., useJSONSource: true, useNewWDA: true, waitForQuiescence: false, wdaLocalPort: 8301, wdaStartupRetries: 5, wdaStartupRetryInterval: 1000, webStorageEnabled: false}
Session ID: 2819a6b0-b500-4d27-92c3-0d3f167ba5cd

在Xcode12和IOS14中运行之后,每次运行一个小时左右会自动退出

2829-11-12 19:25:26.672837+8898 WebDriverAgentRunner-Runner[18156:18183631 Running tests...Restarting after unexpected exit, crash, or test timeout in UITestingUITests/testRunner; summary will include totals fron previous launches.Test Suite 'Selected tests' started at 2020-11-12 19:25:27.818Test Suite 'webDriverAgentRunner,xctest' started at 2829-11-12 19:25:27.819Test Suite 'WebDriverAgentRunner.xctest' failed at 2828-11-12 19:25:27.821Executed 1 test, with 1 failure (e unexpected) in e.000 (e.082) secondsTest Suite 'webDriverAgentLib.framework' started at 2020-11-12 19:25:27.822Test Suite 'WebDriverAgentlib,framework' passed at 2820-11-12 19:25:27.823Executed e tests, with e failures (e unexpected) in e.00e (e.00e) secondsTest Suite 'Selected tests' failed at 2020-11-12 19:25:27.823.Executed 1 test, with 1 failure (e unexpected) in 9.99e (e.005) seconds

WebDriverAgent don't run as test in iOS 13.6.1

Hello all,

I'm trying to run WebDriverAgent in my iPhone in test mode:
xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=419597f208b683c6d9bf2c0eb9036490abe146a0' test

First, my environment is:

  • XCode 10.1
  • iOS 13.5.1
  • macOS 10.13.6

In my first execution, I got this error message: The entitlements specified in your application’s Code Signing Entitlements file are invalid. I solved it by deleting all provisioning profiles that I found going to Window > Devices and simulators > [my iPhone] > Show Provisioning Profiles...
In my second execution, I got this error message that I wasn't able to solve: App installation failed. An unknown error has occurred.

Log message in console follows:

Testing started on 'iPhone de Esteban'
2020-07-10 11:20:19.649 xcodebuild[886:13595]  IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
/Users/casa/Downloads/WebDriverAgent_new/DerivedData/WebDriverAgent/Logs/Test/Test-WebDriverAgentRunner-2020.07.10_11-20-17-+0200.xcresult/1_Test/Diagnostics/WebDriverAgentRunner-85EC944D-5014-4FC1-B21F-0D359D53FE0C/WebDriverAgentRunner-3B59D3EB-6491-4953-8DD9-26A134FCA1CE/Session-WebDriverAgentRunner-2020-07-10_112019-AN5EQi.log
2020-07-10 11:20:19.650 xcodebuild[886:13550] [MT] IDETestOperationsObserverDebug: (0DC525D0-C06A-4E25-9DAD-EFB712F8B3A3) Beginning test session WebDriverAgentRunner-0DC525D0-C06A-4E25-9DAD-EFB712F8B3A3 at 2020-07-10 11:20:19.649 with Xcode 10B61 on target 📱<DVTiOSDevice (0x7fe9009d3cd0), iPhone de Esteban, iPhone, 13.5.1 (17F80), 419597f208b683c6d9bf2c0eb9036490abe146a0> {
                deviceSerialNumber:         DNPSMTCWHG7G
                identifier:                 419597f208b683c6d9bf2c0eb9036490abe146a0
                deviceClass:                iPhone
                deviceName:                 iPhone de Esteban
                deviceIdentifier:           419597f208b683c6d9bf2c0eb9036490abe146a0
                productVersion:             13.5.1
                buildVersion:               17F80
                deviceSoftwareVersion:      13.5.1 (17F80)
                deviceArchitecture:         arm64
                deviceTotalCapacity:        26591887360
                deviceAvailableCapacity:    22542663680
                deviceIsTransient:          NO
                ignored:                    NO
                deviceIsBusy:               NO
                deviceIsPaired:             YES
                deviceIsActivated:          YES
                deviceActivationState:      Activated
                isPasscodeLocked:           NO
                deviceType:                 <DVTDeviceType:0x7fe90053ca40 Xcode.DeviceType.iPhone>
                supportedDeviceFamilies:    (
    1
)
                applications:              (null)
                provisioningProfiles:      (null)
                hasInternalSupport:        NO
                isSupportedOS:             YES
                developerDiskMountError:   (null)
(null)
        bootArgs:                  (null)
                connected:                 yes
                isWirelessEnabled:         no
                connectionType:            direct
                hostname:                  (null)
                bonjourServiceName:        70:70:0d:88:96:92@fe80::7270:dff:fe88:9692._apple-mobdev2._tcp.local.
                } (13.5.1 (17F80))
2020-07-10 11:20:22.500 xcodebuild[886:13614]  iPhoneConnect: 📱<DVTiOSDevice (0x7fe9009d3cd0), iPhone de Esteban, iPhone, 13.5.1 (17F80), 419597f208b683c6d9bf2c0eb9036490abe146a0> installApplicationBundleAtPath:withOptions:andError:withCallback: failed with {
    NSLocalizedDescription = "App installation failed";
    NSLocalizedFailureReason = "An unknown error has occurred.";
    NSLocalizedRecoverySuggestion = "An unknown error has occurred.";
    "com.apple.dtdevicekit.stacktrace" = (
        0   DTDeviceKitBase                     0x0000000113fbcc61 DTDKCreateNSError + 113
        1   DTDeviceKitBase                     0x0000000113fbd4a9 DTDK_AMDErrorToNSError + 1139
        2   DTDeviceKitBase                     0x0000000113fff2c2 __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 158
        3   DVTFoundation                       0x0000000107f18d8b DVTInvokeWithStrongOwnership + 73
        4   DTDeviceKitBase                     0x0000000113ffeff0 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1432
        5   IDEiOSSupportCore                   0x0000000113ee2045 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.342 + 4116
        6   DVTFoundation                       0x000000010804f0a6 __DVTDispatchAsync_block_invoke + 801
        7   libdispatch.dylib                   0x00007fff79a925fa _dispatch_call_block_and_release + 12
        8   libdispatch.dylib                   0x00007fff79a8adb8 _dispatch_client_callout + 8
        9   libdispatch.dylib                   0x00007fff79a9f217 _dispatch_queue_serial_drain + 635
        10  libdispatch.dylib                   0x00007fff79a92166 _dispatch_queue_invoke + 373
        11  libdispatch.dylib                   0x00007fff79a9ff0d _dispatch_root_queue_drain_deferred_wlh + 332
        12  libdispatch.dylib                   0x00007fff79aa3d21 _dispatch_workloop_worker_thread + 880
        13  libsystem_pthread.dylib             0x00007fff79ddbfd2 _pthread_wqthread + 980
        14  libsystem_pthread.dylib             0x00007fff79ddbbe9 start_wqthread + 13
);
}
2020-07-10 11:20:23.157 xcodebuild[886:13592]  iPhoneConnect: 📱<DVTiOSDevice (0x7fe9009d3cd0), iPhone de Esteban, iPhone, 13.5.1 (17F80), 419597f208b683c6d9bf2c0eb9036490abe146a0> failed to install /Users/casa/Downloads/WebDriverAgent_new/DerivedData/WebDriverAgent/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app - error Error Domain=com.apple.dtdevicekit Code=-402620415 "App installation failed" UserInfo={NSLocalizedDescription=App installation failed, com.apple.dtdevicekit.stacktrace=(
        0   DTDeviceKitBase                     0x0000000113fbcc61 DTDKCreateNSError + 113
        1   DTDeviceKitBase                     0x0000000113fbd4a9 DTDK_AMDErrorToNSError + 1139
        2   DTDeviceKitBase                     0x0000000113fff2c2 __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 158
        3   DVTFoundation                       0x0000000107f18d8b DVTInvokeWithStrongOwnership + 73
        4   DTDeviceKitBase                     0x0000000113ffeff0 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1432
        5   IDEiOSSupportCore                   0x0000000113ee2045 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.342 + 4116
        6   DVTFoundation                       0x000000010804f0a6 __DVTDispatchAsync_block_invoke + 801
        7   libdispatch.dylib                   0x00007fff79a925fa _dispatch_call_block_and_release + 12
        8   libdispatch.dylib                   0x00007fff79a8adb8 _dispatch_client_callout + 8
        9   libdispatch.dylib                   0x00007fff79a9f217 _dispatch_queue_serial_drain + 635
        10  libdispatch.dylib                   0x00007fff79a92166 _dispatch_queue_invoke + 373
        11  libdispatch.dylib                   0x00007fff79a9ff0d _dispatch_root_queue_drain_deferred_wlh + 332
        12  libdispatch.dylib                   0x00007fff79aa3d21 _dispatch_workloop_worker_thread + 880
        13  libsystem_pthread.dylib             0x00007fff79ddbfd2 _pthread_wqthread + 980
        14  libsystem_pthread.dylib             0x00007fff79ddbbe9 start_wqthread + 13
), NSLocalizedRecoverySuggestion=An unknown error has occurred., NSLocalizedFailureReason=An unknown error has occurred.}


*** If you believe this error represents a bug, please attach the result bundle at /Users/casa/Downloads/WebDriverAgent_new/DerivedData/WebDriverAgent/Logs/Test/Test-WebDriverAgentRunner-2020.07.10_11-20-17-+0200.xcresult

WebDriverRunner-log.zip

inspector is missing

I started to test iOS app on an iphone. Everything went well until I visit /inspector.

Here is what I get
{
"value" : {
"error" : "unknown command",
"message" : "Unhandled endpoint: /inspector -- http://10.224.161.104:8100/ with parameters {\n wildcards = (\n inspector\n );\n}",
"traceback" : ""
},
"sessionId" : "A8D5E1B5-D9CF-4D35-9758-6226A94AA8DF"
}

It looks like inspector is not correctly installed.

I tried rerun ./Scripts/bootstraps.sh w/o parameter but it always said 'All dependencies is up-to-date. So how can I do to get inspector installed and running?

An error is reported when tapping nil element

952ed2a#diff-ef2b007ff2cf5811194b985ca21d2a23R63-R65

This snippet of code affects handleTap.

https://github.com/appium/WebDriverAgent/blob/master/WebDriverAgentLib/Commands/FBElementCommands.m#L404-L421

It's impossible that the condition is YES.

  if (nil == element) {
    XCUICoordinate *tapCoordinate = [self.class gestureCoordinateWithCoordinate:tapPoint application:request.session.activeApplication shouldApplyOrientationWorkaround:isSDKVersionLessThan(@"11.0")];
    [tapCoordinate tap];
  }
--> POST http://__UDID__/session/FDCC5F83-810A-4DA7-9165-6F2CE84BB565/wda/tap/0
{"x":230,"y":130}

<-- POST http://__UDID__/session/FDCC5F83-810A-4DA7-9165-6F2CE84BB565/wda/tap/0
{
  "value" : {
    "error" : "stale element reference",
    "message" : "The previously found element \"0\" is not present on the current page anymore",
    "traceback" : "(\n\t0   CoreFoundation                      ....)"
  },
  "sessionId" : "FDCC5F83-810A-4DA7-9165-6F2CE84BB565"
}

Find: Elements matching predicate 'label == "%@"'

Method: POST
URL: http://localhost:8100/session/DE30CF27-8E40-4A9E-BA13-02AF14E4728F/alert/accept
Body: {"name":"始终允许"}
"error" : "invalid element state",
[[FBRoute POST:@"/alert/accept"] respondWithTarget:self action:@selector(handleAlertAcceptCommand:)],
    t =    16.96s Get all elements bound by accessibility element for: Elements matching predicate 'label == "%@"'
    t =    16.97s     Requesting snapshot of accessibility hierarchy for app with pid 686
    t =    17.01s     Find: Descendants matching type Any
    t =    17.02s     Find: Elements matching predicate 'elementType IN {7, 5, 46}'
    t =    17.02s     Find: Element at index 0
    t =    17.02s     Find: Descendants matching type Button
    t =    17.03s     Find: Elements matching predicate 'label == "%@"'
- (BOOL)clickAlertButton:(NSString *)label error:(NSError **)error
{
  if (!self.isPresent) {
    return [self notPresentWithError:error];
  }

  NSPredicate *predicate = [NSPredicate predicateWithFormat:[NSString stringWithFormat:@"label == '%@'", label]];
//  NSPredicate *predicate = [NSPredicate predicateWithFormat:@"label == '%@'", label];
  XCUIElement *requestedButton = [[self.alertElement descendantsMatchingType:XCUIElementTypeButton]
                                  matchingPredicate:predicate].fb_firstMatch;
  if (!requestedButton) {
    return [[[FBErrorBuilder builder]
             withDescriptionFormat:@"Failed to find button with label %@ for alert: %@", label, self.alertElement]
            buildError:error];
  }
  return [requestedButton fb_tapWithError:error];
}

⬆️ I modified it this way so that it works.
So, can you fix it?

'capabilities' is mandatory to create a new session

REQUEST:

curl -X POST $JSON_HEADER -d "{'desiredCapabilities':{'bundleId':'com.apple.mobilesafari', 'shouldWaitForQuiescence':false}}" $DEVICE_URL/session

RESPONSE:
{
"value" : {
"error" : "session not created",
"message" : "'capabilities' is mandatory to create a new session",
"traceback" : ""
},
"sessionId" : null
}

Proposing a definitive solution for the visibility attribute.

Hi,

Again I'm in trouble because an element has visibility false, when it should be true. I'd like to propose something to reduce the recurring problem of this 'simple' visible attribute.

Visibility is terribly complicated if we follow the WebDriver specification, which associated visibility to "displayedness". It turns this subject into "user visual perception", therefore we get into trouble.

We are trying to figure out if an element is visible and if it is hittable, using hundreds of lines of code, and relying on un-existing contracts between XCUITest and programmers, i.e. NO API. (I'm talking about - (BOOL)fb_isVisible).

In this case the visibility is wrong because additional attribute FB_XCAXAIsVisibleAttribute is false.

NSNumber *isVisible = self.additionalAttributes[FB_XCAXAIsVisibleAttribute];
if (isVisible != nil) {
return isVisible.boolValue;
}

This is private API, XCUITest doesn't care about that value.

If I disable the use of FB_XCAXAIsVisibleAttribute, It still returns visibility false because the accessibility element at the element mid point is not recognised.

XCAccessibilityElement *hitElement = [FBActiveAppDetectionPoint axElementWithPoint:midPoint];

Again, not happy with area clipping we want to rely on hit tests.

I think it is a pity so much effort (including YYCache) for such critical mistakes that can ruin tests, hours and hours of QA engineers. I think we should leave "displayedness" behind, we will never get it right.

I propose to simplify it by using XCElementSnapshot visibleFrame clipped to screen bounds. visibleFrame is as well private API, so XCUITest doesn't have a contract for correctness, but let's start from there.

An in-range update of wd is breaking the build 🚨

The devDependency wd was updated from 1.11.4 to 1.12.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

wd is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Commits

The new version differs by 12 commits.

  • 9ba5d6b 1.12.0
  • 1432cc5 add httpAgent as right now the connection is not kept alive (#612)
  • 6066d3a build: use built-in sauce connect functionality (#611)
  • b11d89e build: fix test reporting, and tests (#610)
  • 608d2c0 Merge pull request #599 from admc/dependabot/npm_and_yarn/lodash-4.17.13
  • b150ce2 Merge pull request #607 from rhysd/active-element-w3c
  • cf53544 Merge pull request #600 from admc/isaac-fix-gulp
  • bdcb8cc Merge pull request #608 from admc/isaac-sauce-connect
  • 9ab2c1f chore: Sauce Connect 4.5.4
  • 7bfdf92 support W3C get active element command
  • cd86956 fix: naming of tasks in gulp tasks
  • 65fc3c9 Bump lodash from 4.17.11 to 4.17.13

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

WebDriverAgentRunner can't able to archive

I have configured WebDriverAgentRunner as target in Xcode automatically manage signing can't able to archive

lexical or preprocess issue

/usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgentLib/Vendor/CocoaHTTPServer/HTTPServer.m:565:88: error: must specify at least one argument for '...' parameter of variadic macro [-Werror,-Wgnu-zero-variadic-macro-arguments]
NSAssert(dispatch_get_specific(IsOnServerQueueKey) != NULL, @"Must be on serverQueue");

    ^

/usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgentLib/Vendor/CocoaHTTPServer/HTTPServer.m:705:86: error: must specify at least one argument for '...' parameter of variadic macro [-Werror,-Wgnu-zero-variadic-macro-arguments]
NSAssert([NSThread currentThread] == bonjourThread, @"Executed on incorrect thread");

Showing Recent Messages
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSException.h:131:9: Macro 'NSAssert' defined here

Please help this issue

Can you build older WDA with newer Xcode ?

Hello :) I was wondering if it was possible to build WDA version 1.3.5 using Xcode11 ?
I am encountering errors, but I was wondering if maybe there were additional options to use to make it build ?

Thank you for your time !

Failed to build WDA with Xcode 12.3 RC

https://gist.github.com/KazuCocoa/eba4032c83c8b36583d0d559f7d233f1

I confirmed this error on M1 macOS.
Xcode 12.2 has no this issue, I confirmed.

I'll check this with macOS 10.15.
We should adjust relevant project's configuration then.

error: Building for iOS Simulator, but the embedded framework 'CocoaAsyncSocket.framework' was built for iOS + iOS Simulator. (in target 'WebDriverAgentRunner' from project 'WebDriverAgent')
error: Building for iOS Simulator, but the embedded framework 'YYCache.framework' was built for iOS + iOS Simulator. (in target 'WebDriverAgentRunner' from project 'WebDriverAgent')
error: Building for iOS Simulator, but the linked and embedded framework 'YYCache.framework' was built for iOS + iOS Simulator. (in target 'WebDriverAgentLib' from project 'WebDriverAgent')
error: Building for iOS Simulator, but the linked and embedded framework 'CocoaAsyncSocket.framework' was built for iOS + iOS Simulator. (in target 'WebDriverAgentLib' from project 'WebDriverAgent')
2020-12-11 11:15:06.273 xcodebuild[79932:564522] Error writing xctestrun file: Error Domain=NSCocoaErrorDomain Code=4 "The folder “WebDriverAgentRunner_iphonesimulator14.3-x86_64.xctestrun” doesn’t exist." UserInfo={NSFilePath=/Users/kazu/GitHub/ruby_lib_core/tmp/Simulator/Build/Products/WebDriverAgentRunner_iphonesimulator14.3-x86_64.xctestrun, NSUserStringVariant=Folder, NSUnderlyingError=0x117851da0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}

For both simulators and real devices

Failed to connect with WebDriverAgent endpoint on iOS 13.5.1

The problem

Couldn't able to connect to WebDriverAgent endpoint on iOS 13.5.1

Environment

iPhone X(Real device)
iOS 13.5.1
Using curl on client side

Details

Xcode logs

2020-07-01 21:56:16.371524-0700 WebDriverAgentRunner-Runner[3113:666752] Running tests...
Test Suite 'All tests' started at 2020-07-01 21:56:17.220
Test Suite 'WebDriverAgentRunner.xctest' started at 2020-07-01 21:56:17.221
Test Suite 'UITestingUITests' started at 2020-07-01 21:56:17.221
2020-07-01 21:56:17.239161-0700 WebDriverAgentRunner-Runner[3113:666752] [User Defaults] Couldn't write values for keys (
    KeyboardAutocorrection
) in CFPrefsPlistSource<0x283938c00> (Domain: com.apple.Preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access
2020-07-01 21:56:17.244537-0700 WebDriverAgentRunner-Runner[3113:666752] [User Defaults] Couldn't write values for keys (
    KeyboardPrediction
) in CFPrefsPlistSource<0x283938c00> (Domain: com.apple.Preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access
2020-07-01 21:56:17.245091-0700 WebDriverAgentRunner-Runner[3113:666752] [User Defaults] Couldn't write values for keys (
    KeyboardShowPredictionBar
) in CFPrefsPlistSource<0x283938c00> (Domain: com.apple.Preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access
2020-07-01 21:56:17.246986-0700 WebDriverAgentRunner-Runner[3113:666752] [User Defaults] Couldn't write values for keys (
    DidShowGestureKeyboardIntroduction
) in CFPrefsPlistSource<0x283938c00> (Domain: com.apple.Preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access
Test Case '-[UITestingUITests testRunner]' started.
    t =     0.00s Start Test at 2020-07-01 21:56:17.247
    t =     0.00s Set Up
2020-07-01 21:56:17.254121-0700 WebDriverAgentRunner-Runner[3113:666752] Built at Jul  1 2020 21:55:14
2020-07-01 21:56:17.265070-0700 WebDriverAgentRunner-Runner[3113:666752] ServerURLHere->http://192.168.86.39:8100<-ServerURLHere
2020-07-01 21:56:17.265625-0700 WebDriverAgentRunner-Runner[3113:666939] Using singleton test manager
export DEVICE_URL='http://localhost:8100'                                                                                                                
export JSON_HEADER='-H "Content-Type: application/json"
curl -X GET $JSON_HEADER $DEVICE_URL/status                                                                                                               
curl: (7) Failed to connect to localhost port 8100: Connection refused

I am getting above error when I am doing curl on localhost for real device. This works well in case of simulator.

Touch Actions not Working on ios 13.5.1

Warning:
I am getting below error while using touch action.

  "value" : {
    "error" : "unknown command",
    "message" : "Unhandled endpoint: \/session\/B2C3AE2C-7593-4C1B-A55D-053E3860FE63\/wda\/touch\/perform\/%7B'actions':%20%5B%7B'action':%20'press',%20'options':%20%7B'y':%20413.3333333333333,%20'x':%20215.33333333333334%7D%7D,%20%7B'action':%20'release',%20'options':%20%7B%7D%7D%5D%7D -- http:\/\/127.0.0.1:8100\/ with parameters {\n    wildcards =     (\n        \"session\/B2C3AE2C-7593-4C1B-A55D-053E3860FE63\/wda\/touch\/perform\/{'actions': [{'action': 'press', 'options': {'y': 413.3333333333333, 'x': 215.33333333333334}}, {'action': 'release', 'options': {}}]}\"\n    );\n}",
    "traceback" : ""
  },
  "sessionId" : "B2C3AE2C-7593-4C1B-A55D-053E3860FE63"
}.

These issues are not tracked. Please create new issues in the main Appium
repository: https://github.com/appium/appium/issues/new

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on Greenkeeper branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.

Since we didn’t receive a CI status on the greenkeeper/initial branch, it’s possible that you don’t have CI set up yet.
We recommend using:

If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/.

Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please click the 'fix repo' button on account.greenkeeper.io.

Memory leak in HTTP connection handling

There appears to be a memory leak in the way the WebDriverAgent handles HTTP connections.

To reproduce:

  • Start WebDriverAgent using Xcode (I tested on a physical device)
  • Set up port forwarding - e.g. iproxy 8100 8100
  • Run the following script: while true; do curl -X GET http://localhost:8100/health; done
  • Watch memory usage going up, until the process eventually runs out of memory and gets killed

This also reproduces with an route which is not handled (e.g. http://localhost:8100/not_handled)

In my environment (on an iPod running iOS 13.5), this leaks approx. 7 MB/min.

Screenshot 2020-06-09 at 16 33 26

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.