Note about xcode 13 failures
See original GitHub issueI observed the below error in tvOS test in ruby_lib_core test suite, but others seem good. The below is Apple side stuff. (Not WDA specific thing)
[Xcode] 2021-06-08 21:29:46.890282-0700 WebDriverAgentRunner_tvOS-Runner[43582:693623] [BackgroundTask] Background Task 1 ("Called by UIKitCore, from -[UIApplication _deactivateForReason:notify:]"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(_:) for your task in a timely manner to avoid this.
[Xcode]
Haven’t checked, but the result of the profiler name changed?
1) XCUITestDriver - performance
record performance metrics
should return recorded trace file on stop:
{"message":"[execute(\"mobile: stopPerfRecord\",{\"profileName\":\"Time Profiler\"})] Error response status: 13, , UnknownError - An unknown server-side error occurred while processing the command. Selenium error: An unknown server-side error occurred while processing the command. Original error: There is no .trace file found for performance profile 'Time Profiler' and device 53FC6B27-9ABE-4FC6-B69D-E34F069363DC. Make sure the selected profile is supported on this device","status":13,"cause":{"s...
Error: [execute("mobile: stopPerfRecord",{"profileName":"Time Profiler"})] Error response status: 13, , UnknownError - An unknown server-side error occurred while processing the command. Selenium error: An unknown server-side error occurred while processing the command. Original error: There is no .trace file found for performance profile 'Time Profiler' and device 53FC6B27-9ABE-4FC6-B69D-E34F069363DC. Make sure the selected profile is supported on this device
at exports.newError (node_modules/wd/lib/utils.js:152:13)
at /Users/kazuaki/GitHub/appium-xcuitest-driver/node_modules/wd/lib/callbacks.js:94:19
at /Users/kazuaki/GitHub/appium-xcuitest-driver/node_modules/wd/lib/webdriver.js:205:5
at Request._callback (node_modules/wd/lib/http-utils.js:89:7)
at Request.self.callback (node_modules/wd/node_modules/request/request.js:185:22)
at Request.<anonymous> (node_modules/wd/node_modules/request/request.js:1161:10)
at IncomingMessage.<anonymous> (node_modules/wd/node_modules/request/request.js:1083:12)
at endReadableNT (internal/streams/readable.js:1327:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
-
XCUITestDriver - element(s) interactions text fields “before each” hook for “should type in the text field”: {“message”:“[execute("mobile: scroll",{"element":{"ELEMENT":"8A000000-0000-0000-6ECB-000000000000"},"toVisible":true})] Error response status: 13, , UnknownError - An unknown server-side error occurred while processing the command. Selenium error: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: timeout of 480000ms exceeded”,“status”:13,“cause”:{“status”:13,“value”:{“message”:"An unknown se… Error: [execute(“mobile: scroll”,{“element”:{“ELEMENT”:“8A000000-0000-0000-6ECB-000000000000”},“toVisible”:true})] Error response status: 13, , UnknownError - An unknown server-side error occurred while processing the command. Selenium error: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: timeout of 480000ms exceeded at exports.newError (node_modules/wd/lib/utils.js:152:13) at /Users/kazuaki/GitHub/appium-xcuitest-driver/node_modules/wd/lib/callbacks.js:94:19 at /Users/kazuaki/GitHub/appium-xcuitest-driver/node_modules/wd/lib/webdriver.js:205:5 at Request._callback (node_modules/wd/lib/http-utils.js:89:7) at Request.self.callback (node_modules/wd/node_modules/request/request.js:185:22) at Request.<anonymous> (node_modules/wd/node_modules/request/request.js:1161:10) at IncomingMessage.<anonymous> (node_modules/wd/node_modules/request/request.js:1083:12) at endReadableNT (internal/streams/readable.js:1327:12) at processTicksAndRejections (internal/process/task_queues.js:80:21)
-
XCUITestDriver - find duplicate text field “after all” hook for “should find only one element per secure text field”: {“message”:“[execute("mobile: scroll",{"element":{"ELEMENT":"8A000000-0000-0000-1FCC-000000000000"},"toVisible":true})] Error response status: 13, , UnknownError - An unknown server-side error occurred while processing the command. Selenium error: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: timeout of 480000ms exceeded”,“status”:13,“cause”:{“status”:13,“value”:{“message”:"An unknown se… Error: [execute(“mobile: scroll”,{“element”:{“ELEMENT”:“8A000000-0000-0000-1FCC-000000000000”},“toVisible”:true})] Error response status: 13, , UnknownError - An unknown server-side error occurred while processing the command. Selenium error: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: timeout of 480000ms exceeded at exports.newError (node_modules/wd/lib/utils.js:152:13) at /Users/kazuaki/GitHub/appium-xcuitest-driver/node_modules/wd/lib/callbacks.js:94:19 at /Users/kazuaki/GitHub/appium-xcuitest-driver/node_modules/wd/lib/webdriver.js:205:5 at Request._callback (node_modules/wd/lib/http-utils.js:89:7) at Request.self.callback (node_modules/wd/node_modules/request/request.js:185:22) at Request.<anonymous> (node_modules/wd/node_modules/request/request.js:1161:10) at IncomingMessage.<anonymous> (node_modules/wd/node_modules/request/request.js:1083:12) at endReadableNT (internal/streams/readable.js:1327:12) at processTicksAndRejections (internal/process/task_queues.js:80:21)
-
XCUITestDriver - find by predicate string should find invisible elements:
AssertionError: expected [] to have a length above 0 but got 0
- expected - actual
at Context.<anonymous> (test/functional/basic/find-e2e-specs.js:336:30) at runMicrotasks (<anonymous>) at processTicksAndRejections (internal/process/task_queues.js:93:5)
-
XCUITestDriver - find by predicate string should find elements with widths above 0:
AssertionError: expected [] to have a length above 0 but got 0
- expected - actual
at Context.<anonymous> (test/functional/basic/find-e2e-specs.js:341:30) at runMicrotasks (<anonymous>) at processTicksAndRejections (internal/process/task_queues.js:93:5)
-
XCUITestDriver - gestures dynamic gestures should scroll using touch actions: {“message”:"[element.isDisplayed()] Error response status: 10, , StaleElementReference - An element command failed because the referenced element is no longer attached to the DOM. Selenium error: The previously found element ""Web View" StaticText" is not present in the current view anymore. Make sure the application UI has the expected state. You could also try to switch the binding strategy using the ‘boundElementsByIndex’ setting for the element lookup. Original error: No matches found fo… Error: [element.isDisplayed()] Error response status: 10, , StaleElementReference - An element command failed because the referenced element is no longer attached to the DOM. Selenium error: The previously found element ““Web View” StaticText” is not present in the current view anymore. Make sure the application UI has the expected state. You could also try to switch the binding strategy using the ‘boundElementsByIndex’ setting for the element lookup. Original error: No matches found for Identity Binding from input {( StaticText, {{16.0, 628.0}, {76.0, 20.5}}, label: ‘Web View’ )} at exports.newError (node_modules/wd/lib/utils.js:152:13) at /Users/kazuaki/GitHub/appium-xcuitest-driver/node_modules/wd/lib/callbacks.js:94:19 at /Users/kazuaki/GitHub/appium-xcuitest-driver/node_modules/wd/lib/webdriver.js:205:5 at Request._callback (node_modules/wd/lib/http-utils.js:89:7) at Request.self.callback (node_modules/wd/node_modules/request/request.js:185:22) at Request.<anonymous> (node_modules/wd/node_modules/request/request.js:1161:10) at IncomingMessage.<anonymous> (node_modules/wd/node_modules/request/request.js:1083:12) at endReadableNT (internal/streams/readable.js:1327:12) at processTicksAndRejections (internal/process/task_queues.js:80:21)
15 passing (8m) 1 failing
- XCUITestDriver - performance record performance metrics should return recorded trace file on stop: {“message”:“[execute("mobile: stopPerfRecord",{"profileName":"Time Profiler"})] Error response status: 13, , UnknownError - An unknown server-side error occurred while processing the command. Selenium error: An unknown server-side error occurred while processing the command. Original error: There is no .trace file found for performance profile ‘Time Profiler’ and device 53FC6B27-9ABE-4FC6-B69D-E34F069363DC. Make sure the selected profile is supported on this device”,“status”:13,“cause”:{"s… Error: [execute(“mobile: stopPerfRecord”,{“profileName”:“Time Profiler”})] Error response status: 13, , UnknownError - An unknown server-side error occurred while processing the command. Selenium error: An unknown server-side error occurred while processing the command. Original error: There is no .trace file found for performance profile ‘Time Profiler’ and device 53FC6B27-9ABE-4FC6-B69D-E34F069363DC. Make sure the selected profile is supported on this device at exports.newError (node_modules/wd/lib/utils.js:152:13) at /Users/kazuaki/GitHub/appium-xcuitest-driver/node_modules/wd/lib/callbacks.js:94:19 at /Users/kazuaki/GitHub/appium-xcuitest-driver/node_modules/wd/lib/webdriver.js:205:5 at Request._callback (node_modules/wd/lib/http-utils.js:89:7) at Request.self.callback (node_modules/wd/node_modules/request/request.js:185:22) at Request.<anonymous> (node_modules/wd/node_modules/request/request.js:1161:10) at IncomingMessage.<anonymous> (node_modules/wd/node_modules/request/request.js:1083:12) at endReadableNT (internal/streams/readable.js:1327:12) at processTicksAndRejections (internal/process/task_queues.js:80:21)
1) Safari - basics -
init
should start a session with default init:
Error: [init({"browserName":"Safari","nativeWebTap":false,"platformName":"iOS","platformVersion":"15.0","deviceName":"iPhone 8","automationName":"XCUITest","launchWithIDB":false,"noReset":true,"maxTypingFrequency":30,"clearSystemFiles":true,"showXcodeLog":false,"wdaLaunchTimeout":240000,"wdaConnectionTimeout":480000,"useNewWDA":true,"webviewConnectTimeout":30000,"simulatorStartupTimeout":240000})] The environment you requested was unavailable.
An unknown server-side error occurred while processing the command. Original error: Could not navigate to webview; there are none!
at /Users/kazuaki/GitHub/appium-xcuitest-driver/node_modules/wd/lib/webdriver.js:157:15
at Request._callback (node_modules/wd/lib/http-utils.js:89:7)
at Request.self.callback (node_modules/wd/node_modules/request/request.js:185:22)
at Request.<anonymous> (node_modules/wd/node_modules/request/request.js:1161:10)
at IncomingMessage.<anonymous> (node_modules/wd/node_modules/request/request.js:1083:12)
at endReadableNT (internal/streams/readable.js:1327:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
2) safari - windows and frames
without safariAllowPopups
"before all" hook for "should not be able to open js popup windows":
Error: Timeout of 240000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/Users/kazuaki/GitHub/appium-xcuitest-driver/build/test/functional/web/safari-window-e2e-specs.js)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
3) safari - windows and frames
with safariAllowPopups
"before all" hook in "with safariAllowPopups":
Error: [init({"safariInitialUrl":"http://localhost:4994/test/guinea-pig","safariAllowPopups":true,"nativeWebTap":true,"browserName":"Safari","platformName":"iOS","platformVersion":"15.0","deviceName":"iPhone 8","automationName":"XCUITest","launchWithIDB":false,"noReset":true,"maxTypingFrequency":30,"clearSystemFiles":true,"showXcodeLog":false,"wdaLaunchTimeout":240000,"wdaConnectionTimeout":480000,"useNewWDA":true,"webviewConnectTimeout":30000,"simulatorStartupTimeout":240000})] The environment you requested was unavailable.
A new session could not be created. Details: Cannot create a new session while one is in progress
at /Users/kazuaki/GitHub/appium-xcuitest-driver/node_modules/wd/lib/webdriver.js:157:15
at Request._callback (node_modules/wd/lib/http-utils.js:89:7)
at Request.self.callback (node_modules/wd/node_modules/request/request.js:185:22)
at Request.<anonymous> (node_modules/wd/node_modules/request/request.js:1161:10)
at IncomingMessage.<anonymous> (node_modules/wd/node_modules/request/request.js:1083:12)
at endReadableNT (internal/streams/readable.js:1327:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
4) iPhone 6 -
"before all" hook for "should be able to tap on an element":
Error: [init({"deviceName":"iPhone 6","safariInitialUrl":"http://localhost:4994/test/guinea-pig","nativeWebTap":true,"browserName":"Safari","platformName":"iOS","platformVersion":"15.0","automationName":"XCUITest","launchWithIDB":false,"noReset":true,"maxTypingFrequency":30,"clearSystemFiles":true,"showXcodeLog":false,"wdaLaunchTimeout":240000,"wdaConnectionTimeout":480000,"useNewWDA":true,"webviewConnectTimeout":30000,"simulatorStartupTimeout":240000})] The environment you requested was unavailable.
An unknown server-side error occurred while processing the command. Original error: Could not create simulator with name 'appiumTest-99125925-DA80-4120-BA76-FB9385CA699B-iPhone 6', device type id 'iPhone 6', with runtime ids 'com.apple.CoreSimulator.SimRuntime.iOS-15-0'
at /Users/kazuaki/GitHub/appium-xcuitest-driver/node_modules/wd/lib/webdriver.js:157:15
at Request._callback (node_modules/wd/lib/http-utils.js:89:7)
at Request.self.callback (node_modules/wd/node_modules/request/request.js:185:22)
at Request.<anonymous> (node_modules/wd/node_modules/request/request.js:1161:10)
at IncomingMessage.<anonymous> (node_modules/wd/node_modules/request/request.js:1083:12)
at endReadableNT (internal/streams/readable.js:1327:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
5) iPad Simulator -
with tabs -
should be able to tap on an element after scrolling, when the url bar is present:
{"message":"[elementByAccessibilityId(\"URL\")] Error response status: 7, , NoSuchElement - An element could not be located on the page using the given search parameters. Selenium error: An element could not be located on the page using the given search parameters.","status":7,"cause":{"status":7,"value":{"message":"An element could not be located on the page using the given search parameters."},"sessionId":"3f4fd063-c2a7-42c0-8095-06a874e8fdc2"},"jsonwire-error":{"status":7,"summary":"NoSuchEle...
Error: [elementByAccessibilityId("URL")] Error response status: 7, , NoSuchElement - An element could not be located on the page using the given search parameters. Selenium error: An element could not be located on the page using the given search parameters.
at exports.newError (node_modules/wd/lib/utils.js:152:13)
at /Users/kazuaki/GitHub/appium-xcuitest-driver/node_modules/wd/lib/callbacks.js:94:19
at /Users/kazuaki/GitHub/appium-xcuitest-driver/node_modules/wd/lib/webdriver.js:205:5
at Request._callback (node_modules/wd/lib/http-utils.js:89:7)
at Request.self.callback (node_modules/wd/node_modules/request/request.js:185:22)
at Request.<anonymous> (node_modules/wd/node_modules/request/request.js:1161:10)
at IncomingMessage.<anonymous> (node_modules/wd/node_modules/request/request.js:1083:12)
at endReadableNT (internal/streams/readable.js:1327:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
Issue Analytics
- State:
- Created 2 years ago
- Comments:13 (12 by maintainers)
Top GitHub Comments
Yup. I’ve reported it with https://github.com/appium/appium-xcuitest-driver/issues/1312#issuecomment-858332712 this example
18-20 connected ios devices! 😮