Replies: 1 comment 8 replies
-
hmm i "solved" the problem by do a "npm install resolve-from" within the folder "/.appium/node_modules/appium-xcuitest-driver" If that is not intended i would move this to an issue |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Can someone explain me how i have to setup the new driver installation via npm ?
Until now i have installed the appium drivers with a postscript via npm install and they were located directly in .appium folder.
Now the same postinstall script installs them into a subfolder "node_modules" within the .appium folder and the tests can't find them. Do i have to change the script or the appium home path i set for the appium
Thats the error on loading the drivers
`2022-03-23 11:08:44:285 - Could not start a new session. Response code 500. Message: An unknown server-side error occurred while processing the command. Original 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: Cannot find module 'resolve-from'
Require stack:
2022-03-23 11:08:44:157 - [debug] [AppiumDriver@a532febe] at AppiumDriver.createSession (/Users/st.xxx/git/rossapp-ios-uitest_java/node_modules/appium/lib/appium.js:194:29)
2022-03-23 11:08:44:157 - [debug] [AppiumDriver@a532febe] at commandExecutor (/Users/st.xxx/git/rossapp-ios-uitest_java/node_modules/@appium/base-driver/lib/basedriver/driver.js:346:7)
2022-03-23 11:08:44:158 - [debug] [AppiumDriver@a532febe] at AppiumDriver.executeCommand (/Users/st.xxx/git/rossapp-ios-uitest_java/node_modules/@appium/base-driver/lib/basedriver/driver.js:360:15)
2022-03-23 11:08:44:158 - [debug] [AppiumDriver@a532febe] at defaultBehavior (/Users/st.xxx/git/rossapp-ios-uitest_java/node_modules/appium/lib/appium.js:538:28)
2022-03-23 11:08:44:158 - [debug] [AppiumDriver@a532febe] at ImageElementPlugin.handle (/Users/st.xxx/.appium/node_modules/@appium/images-plugin/lib/plugin.js:78:18)
2022-03-23 11:08:44:158 - [debug] [AppiumDriver@a532febe] at wrappedCmd (/Users/st.xxx/git/rossapp-ios-uitest_java/node_modules/appium/lib/appium.js:587:29)
2022-03-23 11:08:44:158 - [debug] [AppiumDriver@a532febe] at AppiumDriver.executeWrappedCommand (/Users/st.xxx/git/rossapp-ios-uitest_java/node_modules/appium/lib/appium.js:620:22)
2022-03-23 11:08:44:159 - [debug] [AppiumDriver@a532febe] at AppiumDriver.executeCommand (/Users/st.xxx/git/rossapp-ios-uitest_java/node_modules/appium/lib/appium.js:549:28)
2022-03-23 11:08:44:159 - [debug] [AppiumDriver@a532febe] at asyncHandler (/Users/st.xxx/git/rossapp-ios-uitest_java/node_modules/@appium/base-driver/lib/protocol/protocol.js:315:32)
2022-03-23 11:08:44:159 - [debug] [AppiumDriver@a532febe] at /Users/st.xxx/git/rossapp-ios-uitest_java/node_modules/@appium/base-driver/lib/protocol/protocol.js:413:15
2022-03-23 11:08:44:159 - [debug] [AppiumDriver@a532febe] at Layer.handle [as handle_request] (/Users/st.xxx/git/rossapp-ios-uitest_java/node_modules/express/lib/router/layer.js:95:5)
2022-03-23 11:08:44:159 - [debug] [AppiumDriver@a532febe] at next (/Users/st.xxx/git/rossapp-ios-uitest_java/node_modules/express/lib/router/route.js:137:13)
2022-03-23 11:08:44:160 - [debug] [AppiumDriver@a532febe] at Route.dispatch (/Users/st.xxx/git/rossapp-ios-uitest_java/node_modules/express/lib/router/route.js:112:3)
2022-03-23 11:08:44:160 - [debug] [AppiumDriver@a532febe] at Layer.handle [as handle_request] (/Users/st.xxx/git/rossapp-ios-uitest_java/node_modules/express/lib/router/layer.js:95:5)
2022-03-23 11:08:44:160 - [debug] [AppiumDriver@a532febe] at /Users/st.xxx/git/rossapp-ios-uitest_java/node_modules/express/lib/router/index.js:281:22
2022-03-23 11:08:44:160 - [debug] [AppiumDriver@a532febe] at Function.process_params (/Users/st.xxx/git/rossapp-ios-uitest_java/node_modules/express/lib/router/index.js:341:12)
2022-03-23 11:08:44:160 - [debug] [AppiumDriver@a532febe] at next (/Users/st.xxx/git/rossapp-ios-uitest_java/node_modules/express/lib/router/index.js:275:10)
2022-03-23 11:08:44:160 - [debug] [AppiumDriver@a532febe] at logger (/Users/st.xxx/git/rossapp-ios-uitest_java/node_modules/morgan/index.js:144:5)
2022-03-23 11:08:44:160 - [debug] [AppiumDriver@a532febe] at Layer.handle [as handle_request] (/Users/st.xxx/git/rossapp-ios-uitest_java/node_modules/express/lib/router/layer.js:95:5)
2022-03-23 11:08:44:160 - [debug] [AppiumDriver@a532febe] at trim_prefix (/Users/st.xxx/git/rossapp-ios-uitest_java/node_modules/express/lib/router/index.js:323:13)
2022-03-23 11:08:44:161 - [debug] [AppiumDriver@a532febe] at /Users/st.xxx/git/rossapp-ios-uitest_java/node_modules/express/lib/router/index.js:284:7
2022-03-23 11:08:44:161 - [debug] [AppiumDriver@a532febe] at Function.process_params (/Users/st.xxx/git/rossapp-ios-uitest_java/node_modules/express/lib/router/index.js:341:12)
2022-03-23 11:08:44:161 - [debug] [AppiumDriver@a532febe] at next (/Users/st.xxx/git/rossapp-ios-uitest_java/node_modules/express/lib/router/index.js:275:10)
2022-03-23 11:08:44:161 - [debug] [AppiumDriver@a532febe] at /Users/st.xxx/git/rossapp-ios-uitest_java/node_modules/body-parser/lib/read.js:130:5
2022-03-23 11:08:44:161 - [debug] [AppiumDriver@a532febe] at invokeCallback (/Users/st.xxx/git/rossapp-ios-uitest_java/node_modules/raw-body/index.js:224:16)
2022-03-23 11:08:44:162 - [debug] [AppiumDriver@a532febe] at done (/Users/st.xxx/git/rossapp-ios-uitest_java/node_modules/raw-body/index.js:213:7)
2022-03-23 11:08:44:162 - [debug] [AppiumDriver@a532febe] at IncomingMessage.onEnd (/Users/st.xxx/git/rossapp-ios-uitest_java/node_modules/raw-body/index.js:273:7)`
Beta Was this translation helpful? Give feedback.
All reactions