- Le plus récent
- Le plus de votes
- La plupart des commentaires
So far nothing I tried have worked, But it seems that I found a workaround...
If I change the iOS device from the device pool to a different one, then there the tests are working again ( hence it could build the webdriverAgent against that new device )
Perhaps an original solution would be a proper way to delete and rebuild the WebdriverAgent on DF side once this happens ( I just could not find a solution that would work and do this).
For context, I've used an iPhone 13 with iOS 16.0.2 where this issue appeared, and changed to an iOS 16.6 device. Tests are green again
As an update: Since then a lot changed on device farm, and now there is a proper way to use appium2, and there are new prebuild wda-s that we can use https://repost.aws/questions/QUIoP8rRhzTCyYJx2ro9qEOg/device-farm-ios-run-failure-unable-to-start-webdriveragent-session-because-of-xcodebuild-failure#CO8SqU-srXQ02nfBHmQpd5JQ
I'm experiencing the same problem with AWS Device Farm. Did you ever resolve this? I've selected an iOS 16.6 device, but getting:
2024-09-03 11:15:07:260 - [AppiumDriver@011a] Encountered internal error running command: Error: Could not find a driver for automationName 'XCUITest' and platformName 'iOS'. Have you installed a driver that supports those capabilities? Run 'appium driver list --installed' to see. (Lower-level error: Could not find installed driver to support given caps)
Added appium driver list --json to the script, output is appium driver list --json { "xcuitest": { "pkgName": "appium-xcuitest-driver", "version": "5.8.1", "installType": "npm", "installSpec": "xcuitest@5.8.1", "installPath": "/Users/device-farm/.appium/node_modules/appium-xcuitest-driver", "appiumVersion": "^2.0.0", "automationName": "XCUITest", "platformNames": [ "iOS", "tvOS" ], "mainClass": "XCUITestDriver", "scripts": { "build-wda": "./scripts/build-wda.js", "open-wda": "./scripts/open-wda.js" }, "schema": { "$schema": "http://json-schema.org/draft-07/schema", "type": "object", "properties": { "webdriveragent-port": { "appiumCliDest": "wdaLocalPort", "default": 8100, "description": "Local port used for communication with WebDriverAgent", "maximum": 65535, "minimum": 1, "type": "integer" } }, "additionalProperties": false, "title": "XCUITest Driver Configuration", "description": "Appium configuration schema for the XCUITest driver.", "$id": "driver-xcuitest.json" }, "installed": true }, "uiautomator2": { "pkgName": "appium-uiautomator2-driver", "installed": false }, "mac2": { "pkgName": "appium-mac2-driver", "installed": false }, "espresso": { "pkgName": "appium-espresso-driver", "installed": false }, "safari": { "pkgName": "appium-safari-driver", "installed": false }, "gecko": { "pkgName": "appium-geckodriver", "installed": false }, "chromium": { "pkgName": "appium-chromium-driver", "installed": false } }
so this seems ok. However, looking at the appium logs, I see: 2024-09-03 11:14:47:544 - [Appium] Welcome to Appium v2.2.1 2024-09-03 11:14:47:545 - [Appium] Non-default server args: 2024-09-03 11:14:47:546 - [Appium] { basePath: '/wd/hub', 2024-09-03 11:14:47:546 - [Appium] logNoColors: true, 2024-09-03 11:14:47:546 - [Appium] logTimestamp: true, 2024-09-03 11:14:47:546 - [Appium] relaxedSecurityEnabled: true } 2024-09-03 11:14:47:546 - [Appium] Default capabilities, which will be added to each request unless overridden by desired capabilities: 2024-09-03 11:14:47:547 - [Appium] { 'appium:deviceName': '00008120-000C61642610A01E', 2024-09-03 11:14:47:547 - [Appium] platformName: 'iOS', 2024-09-03 11:14:47:547 - [Appium] 'appium:app': '/tmp/devicefarm-workspace/execution-mk4ws5i1/uploads-kodgdeke/app-snvkwwic.ipa', 2024-09-03 11:14:47:547 - [Appium] 'appium:udid': '00008120-000C61642610A01E', 2024-09-03 11:14:47:547 - [Appium] 'appium:platformVersion': '17.4', 2024-09-03 11:14:47:547 - [Appium] 'appium:derivedDataPath': 2024-09-03 11:14:47:547 - [Appium] '/tmp/devicefarm-workspace/execution-mk4ws5i1/shared-xfa5ffli/DerviedDataesix5k7a', 2024-09-03 11:14:47:547 - [Appium] 'appium:usePrebuiltWDA': true, 2024-09-03 11:14:47:547 - [Appium] 'appium:automationName': 'XCUITest' } 2024-09-03 11:14:47:560 - [Appium] Appium REST http interface listener started on http://0.0.0.0:4723/wd/hub 2024-09-03 11:14:47:560 - [Appium] You can provide the following URLs in your client code to connect to this server: 2024-09-03 11:14:47:560 - [Appium] http://127.0.0.1:4723/wd/hub (only accessible from the same host) 2024-09-03 11:14:47:560 - [Appium] http://192.168.64.2:4723/wd/hub 2024-09-03 11:14:47:560 - [Appium] No drivers have been installed in /private/tmp/devicefarm-workspace/execution-mk4ws5i1/test-package-xxtgkjxe. Use the "appium driver" command to install the one(s) you want to use. 2024-09-03 11:14:47:560 - [Appium] No plugins have been installed. Use the "appium plugin" command to install the one(s) you want to use.
So it seems that when appium executes, it cannot find any drivers or plugins?
Contenus pertinents
- demandé il y a 3 mois
- demandé il y a 6 mois
- demandé il y a 2 ans
- AWS OFFICIELA mis à jour il y a 3 ans
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 3 ans
Phew... This was an old post, it's certainly got resolved. but I dont remember the actual contexts ( and ofc it's my bad that i did not write an answer for future people)
Although a lot of time passed since, so i would encourage you to re-read the setup documentation because now you are not needed to install appium yourself.
This is how you use a pre installed appium ( 2.2.1) - export NVM_DIR=$HOME/.nvm - . $NVM_DIR/nvm.sh
Also double check your derived data path. it's not ( to my latest knowledge, and what i use) is: DEVICEFARM_WDA_DERIVED_DATA_PATH=$DEVICEFARM_WDA_DERIVED_DATA_PATH_V8;
and lastly.. when you start the appium server forget the /wd/hub i think it's faulty in the setup docs. if I have /wd/hub in it, then it fails to start and find it, but if I skip it, then it works: http://0.0.0.0:4723/status
So I think if you check this 3 thing you should be able to solve your problem too
Thanks Janos,
After trying multiple tweaks, I changed:
avm 2.2.1
to be a direct npm install
npm -g appium@2.2.1
After doing this, the error got past not finding the XCUITest driver.
The issue I'm facing now is that it does launch my app on the device, but fails to find an element on the app. Scripts work against Android, but not iOS.
I need to now prove out that the tests work on a local physical device to ensure that there isn't an issue with my test script.
Thanks for your help.