Comments (11)
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.
🤔
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.
Only these four directions can be used
+ (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.
Please provide the full log
from webdriveragent.
@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.
Are WDA sources from master branch?
from webdriveragent.
@mykola-mokhnach yes it is lastest from master branch. I create new session with empty capabalities, is that cause of this issue?
from webdriveragent.
Make sure ‘Portrait Orientation Lock’ is turned off
from webdriveragent.
The Portrait Orientation Lock already off. I think because i create session with the empty capabilities.
from webdriveragent.
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.
After revert to using XCTest.framework
and PrivateFrameworks
of Xcode 11.4.1, it worked.
from webdriveragent.
Related Issues (20)
- WDA crash when call screenshot API HOT 3
- build failure in new update 14.4 HOT 1
- window/size sometimes returns an incorrect size HOT 7
- Testing failed: No visible @interface for 'XCUIDevice' declares the selector 'pressButton:' Use of undeclared identifier 'XCUIDeviceButtonHome' Testing cancelled because the build failed. HOT 14
- 运行WebDriverAgent后出现的Automation Running hold both volume buttons to stop 提示蒙层能否去掉 HOT 2
- XCUIElementTypeAlert cannot be found HOT 1
- Expect outside of acceptAlertButtonSelector button will not automatically be click
- After installing the latest WebDriverAgent (WDA) on an iOS 17.4.1 system, the device can be tested using Xcode successfully. However, once the device is unplugged and I attempt to open WDA manually, it crashes. Has anyone experienced this problem? Assistance would be appreciated. HOT 4
- I want to keep the current screen brightness after starting wda. Is this possible? Currently, wda does not run after opening it, and the screen will automatically dim after a while. HOT 5
- IOS 17 real device, can't launch wda HOT 8
- The cloud real machine function flashes down
- Can I support devices with ios 9.0? HOT 1
- What is the minimum version of iOS system supported by MJPEG-Server HOT 3
- Build WDA Error ld: cannot link directly with 'XCTAutomationSupport' because product being built is not an allowed client of it clang: error: linker command failed with exit code 1 (use -v to see invocation)
- Using WDA without Xcode, WDA is crash. HOT 3
- App crashes when WDA interacts (e.g. clicks) with UI developed using Flutter v3.22
- Unable to Upload WebDriverAgentRunner (not the Integration App) to TestFlight HOT 1
- pointerUp doesn't work in iOS devices HOT 7
- webAgentRunner test running error? brower input http://192.168.199.143:8100 无法访问此网站 HOT 1
- [Feat] keep webdriverAgent active in Background, for clipboard ability HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webdriveragent.