GithubHelp home page GithubHelp logo

Comments (11)

mykola-mokhnach avatar mykola-mokhnach commented on August 12, 2024 1

I use Xcode 11.5-beta and I cannot reproduce the issue. Try to put more logging into fb_activeApplicationWithDefaultBundleId method to figure out which method call causes deprecation warning

from webdriveragent.

electricbubble avatar electricbubble commented on August 12, 2024 1

🤔

iPhoneX 13.4.1

2020/06/04 23:00:55 [DEBUG]↩︎
Method: POST
URL: http://localhost:8100/session
Body: {"capabilities":{}}
Duration: 115.053501ms
Response: {
  "value" : {
    "sessionId" : "059CAE2A-9142-48EC-82E9-93F21005AB2A",
    "capabilities" : {
      "device" : "iphone",
      "browserName" : "计算器",
      "sdkVersion" : "13.4.1",
      "CFBundleIdentifier" : "com.apple.calculator"
    }
  },
  "sessionId" : "059CAE2A-9142-48EC-82E9-93F21005AB2A"
}

2020/06/04 23:00:57 [DEBUG]↩︎
Method: POST
URL: http://localhost:8100/session/059CAE2A-9142-48EC-82E9-93F21005AB2A/orientation
Body: {"orientation":"LANDSCAPE"}
Duration: 1.55004099s
Response: {
  "value" : null,
  "sessionId" : "059CAE2A-9142-48EC-82E9-93F21005AB2A"
}

from webdriveragent.

electricbubble avatar electricbubble commented on August 12, 2024 1

Only these four directions can be used

https://github.com/appium/WebDriverAgent/blob/master/WebDriverAgentLib/Commands/FBOrientationCommands.m#L134-L148

+ (NSDictionary *)_orientationsMapping
{
  static NSDictionary *orientationMap;
  static dispatch_once_t onceToken;
  dispatch_once(&onceToken, ^{
    orientationMap =
    @{
      FBWDOrientationValues.portrait : @(UIDeviceOrientationPortrait),
      FBWDOrientationValues.portraitUpsideDown : @(UIDeviceOrientationPortraitUpsideDown),
      FBWDOrientationValues.landscapeLeft : @(UIDeviceOrientationLandscapeLeft),
      FBWDOrientationValues.landscapeRight : @(UIDeviceOrientationLandscapeRight),
      };
  });
  return orientationMap;
}

from webdriveragent.

mykola-mokhnach avatar mykola-mokhnach commented on August 12, 2024

Please provide the full log

from webdriveragent.

coinhu1995 avatar coinhu1995 commented on August 12, 2024

@mykola-mokhnach I just open WDA in the Xcode and test the project. This is environment:

- Device: iPhone 7 Plus
- iOS: 13.4.1
- Xcode: 11.4.1

This is the whole log of Xcode

2020-06-04 17:27:12.867295+0700 WebDriverAgentRunner-Runner[997:273388] Running tests... Test Suite 'All tests' started at 2020-06-04 17:27:13.438 Test Suite 'WebDriverAgentRunner.xctest' started at 2020-06-04 17:27:13.439 Test Suite 'UITestingUITests' started at 2020-06-04 17:27:13.440 2020-06-04 17:27:13.471187+0700 WebDriverAgentRunner-Runner[997:273388] [User Defaults] Couldn't write values for keys ( KeyboardAutocorrection ) in CFPrefsPlistSource<0x283473280> (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-06-04 17:27:13.493296+0700 WebDriverAgentRunner-Runner[997:273388] [User Defaults] Couldn't write values for keys ( KeyboardPrediction ) in CFPrefsPlistSource<0x283473280> (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-06-04 17:27:13.494260+0700 WebDriverAgentRunner-Runner[997:273388] [User Defaults] Couldn't write values for keys ( KeyboardShowPredictionBar ) in CFPrefsPlistSource<0x283473280> (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-06-04 17:27:13.497607+0700 WebDriverAgentRunner-Runner[997:273388] [User Defaults] Couldn't write values for keys ( DidShowGestureKeyboardIntroduction ) in CFPrefsPlistSource<0x283473280> (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-06-04 17:27:13.499 t = 0.00s Set Up 2020-06-04 17:27:13.511212+0700 WebDriverAgentRunner-Runner[997:273388] Built at Jun 4 2020 16:27:54 2020-06-04 17:27:13.527581+0700 WebDriverAgentRunner-Runner[997:273388] ServerURLHere->http://172.27.168.133:8100<-ServerURLHere 2020-06-04 17:27:13.528478+0700 WebDriverAgentRunner-Runner[997:273541] Using singleton test manager 2020-06-04 17:28:54.051878+0700 WebDriverAgentRunner-Runner[997:273388] 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/WebDriverAgent/WebDriverAgentRunner/UITestingUITests.m 38 1 2020-06-04 17:28:54.052873+0700 WebDriverAgentRunner-Runner[997:273388] Enqueue Failure: Failure to determine system application: (null) /Users/nhunh/workspace/source/WebDriverAgent/WebDriverAgentRunner/UITestingUITests.m 38 1 2020-06-04 17:28:54.054753+0700 WebDriverAgentRunner-Runner[997:273388] 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/WebDriverAgent/WebDriverAgentRunner/UITestingUITests.m 38 1 2020-06-04 17:28:54.055818+0700 WebDriverAgentRunner-Runner[997:273388] Enqueue Failure: Failure getting list of active applications: (null) /Users/nhunh/workspace/source/WebDriverAgent/WebDriverAgentRunner/UITestingUITests.m 38 1 2020-06-04 17:28:54.056172+0700 WebDriverAgentRunner-Runner[997:273388] Cannot retrieve any active applications. Assuming the system application is the active one 2020-06-04 17:28:54.058976+0700 WebDriverAgentRunner-Runner[997:273388] 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/WebDriverAgent/WebDriverAgentRunner/UITestingUITests.m 38 1 2020-06-04 17:28:54.059863+0700 WebDriverAgentRunner-Runner[997:273388] Enqueue Failure: Failure to determine system application: (null) /Users/nhunh/workspace/source/WebDriverAgent/WebDriverAgentRunner/UITestingUITests.m 38 1 2020-06-04 17:28:54.060401+0700 WebDriverAgentRunner-Runner[997:273388] *** Assertion failure in -[XCUIApplicationMonitor_iOS applicationProcessWithPID:], /Library/Caches/com.apple.xbs/Sources/XCTest_iOS/XCTest-14460.20/Sources/UITesting/Applications/XCUIApplicationMonitor.m:227 2020-06-04 17:29:10.585326+0700 WebDriverAgentRunner-Runner[997:273388] 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/WebDriverAgent/WebDriverAgentRunner/UITestingUITests.m 38 1 2020-06-04 17:29:10.587124+0700 WebDriverAgentRunner-Runner[997:273388] Enqueue Failure: Failure to determine system application: (null) /Users/nhunh/workspace/source/WebDriverAgent/WebDriverAgentRunner/UITestingUITests.m 38 1 2020-06-04 17:29:10.595168+0700 WebDriverAgentRunner-Runner[997:273388] 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/WebDriverAgent/WebDriverAgentRunner/UITestingUITests.m 38 1 2020-06-04 17:29:10.598720+0700 WebDriverAgentRunner-Runner[997:273388] Enqueue Failure: Failure getting list of active applications: (null) /Users/nhunh/workspace/source/WebDriverAgent/WebDriverAgentRunner/UITestingUITests.m 38 1 2020-06-04 17:29:10.600565+0700 WebDriverAgentRunner-Runner[997:273388] Cannot retrieve any active applications. Assuming the system application is the active one 2020-06-04 17:29:10.609058+0700 WebDriverAgentRunner-Runner[997:273388] 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/WebDriverAgent/WebDriverAgentRunner/UITestingUITests.m 38 1 2020-06-04 17:29:10.611311+0700 WebDriverAgentRunner-Runner[997:273388] Enqueue Failure: Failure to determine system application: (null) /Users/nhunh/workspace/source/WebDriverAgent/WebDriverAgentRunner/UITestingUITests.m 38 1 2020-06-04 17:29:10.611589+0700 WebDriverAgentRunner-Runner[997:273388] *** Assertion failure in -[XCUIApplicationMonitor_iOS applicationProcessWithPID:], /Library/Caches/com.apple.xbs/Sources/XCTest_iOS/XCTest-14460.20/Sources/UITesting/Applications/XCUIApplicationMonitor.m:227

from webdriveragent.

mykola-mokhnach avatar mykola-mokhnach commented on August 12, 2024

Are WDA sources from master branch?

from webdriveragent.

coinhu1995 avatar coinhu1995 commented on August 12, 2024

@mykola-mokhnach yes it is lastest from master branch. I create new session with empty capabalities, is that cause of this issue?

from webdriveragent.

electricbubble avatar electricbubble commented on August 12, 2024

Make sure ‘Portrait Orientation Lock’ is turned off

from webdriveragent.

coinhu1995 avatar coinhu1995 commented on August 12, 2024

The Portrait Orientation Lock already off. I think because i create session with the empty capabilities.

image

from webdriveragent.

coinhu1995 avatar coinhu1995 commented on August 12, 2024

I suddenly remembered, I am using XCTest.framework and PrivateFrameworks of Xcode 10.1, may be these libraries are deprecated, I will using libraries of Xcode 11.4.1 and check again.

from webdriveragent.

coinhu1995 avatar coinhu1995 commented on August 12, 2024

After revert to using XCTest.framework and PrivateFrameworks of Xcode 11.4.1, it worked.

from webdriveragent.

Related Issues (20)

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.