Comments (8)
Make sure the Node.JS is up to date (we advice the latest LTS)
Then reinstall the server. To cleanup installed drivers it is necessary to delete the $HOME/.appium
folder
from appium.
I just did all of that but i'm getting the same output.
This is the output of node -v
:
v20.11.0
from appium.
Please provide the full server log
from appium.
[Appium] Welcome to Appium v2.4.1 (REV 1c612baa096c69f2fcb221c74e6f5b9979efdcee)
[Appium] The autodetected Appium home path: /Users/qalified/.appium
[Appium] Attempting to load driver xcuitest...
[Appium] Requiring driver at /Users/qalified/.appium/node_modules/appium-xcuitest-driver/build/index.js
[Appium] Could not load driver 'xcuitest', so it will not be available. Error in loading the driver was: require() of ES Module /Users/qalified/node_modules/chalk/source/index.js from /Users/qalified/node_modules/@babel/code-frame/lib/index.js not supported.
[Appium] Instead change the require of /Users/qalified/node_modules/chalk/source/index.js in /Users/qalified/node_modules/@babel/code-frame/lib/index.js to a dynamic import() which is available in all CommonJS modules.
[Appium] Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/qalified/node_modules/chalk/source/index.js from /Users/qalified/node_modules/@babel/code-frame/lib/index.js not supported.
[Appium] Instead change the require of /Users/qalified/node_modules/chalk/source/index.js in /Users/qalified/node_modules/@babel/code-frame/lib/index.js to a dynamic import() which is available in all CommonJS modules.
[Appium] at Object.<anonymous> (/Users/qalified/node_modules/@babel/code-frame/lib/index.js:9:38)
[Appium] at Object.<anonymous> (/Users/qalified/node_modules/parse-json/index.js:5:28)
[Appium] at Object.<anonymous> (/Users/qalified/node_modules/read-pkg/index.js:5:19)
[Appium] at Object.<anonymous> (/Users/qalified/node_modules/@appium/support/build/lib/fs.js:18:36)
[Appium] Appium REST http interface listener started on http://0.0.0.0:4723
[Appium] You can provide the following URLs in your client code to connect to this server:
[Appium] http://127.0.0.1:4723/ (only accessible from the same host)
[Appium] http://192.168.1.4:4723/
[Appium] http://169.254.56.213:4723/
[Appium] http://169.254.134.8:4723/
[Appium] Available drivers:
[Appium] - [email protected] (automationName 'XCUITest')
[Appium] No plugins have been installed. Use the "appium plugin" command to install the one(s) you want to use.
[HTTP] --> POST /session
[HTTP] {"capabilities":{"alwaysMatch":{"appium:udid":"00008101-00053094213A001E","appium:bundleId":"com.gia.dev2021","appium:deviceName":"iPhone equipo técnico","platformName":"iOS","appium:automationName":"XCUITest","appium:xcodeOrgId":"6U86FCFMS3","appium:xcodeSigningId":"iPhone Developer","appium:updatedWDABundleId":"qalified.WebDriverAgentRunnerQalified","appium:includeSafariInWebviews":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},"firstMatch":[{}]},"desiredCapabilities":{"appium:udid":"00008101-00053094213A001E","appium:bundleId":"com.gia.dev2021","appium:deviceName":"iPhone equipo técnico","platformName":"iOS","appium:automationName":"XCUITest","appium:xcodeOrgId":"6U86FCFMS3","appium:xcodeSigningId":"iPhone Developer","appium:updatedWDABundleId":"qalified.WebDriverAgentRunnerQalified","appium:includeSafariInWebviews":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true}}
[AppiumDriver@3da1] Calling AppiumDriver.createSession() with args: [{"appium:udid":"00008101-00053094213A001E","appium:bundleId":"com.gia.dev2021","appium:deviceName":"iPhone equipo técnico","platformName":"iOS","appium:automationName":"XCUITest","appium:xcodeOrgId":"6U86FCFMS3","appium:xcodeSigningId":"iPhone Developer","appium:updatedWDABundleId":"qalified.WebDriverAgentRunnerQalified","appium:includeSafariInWebviews":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},null,{"alwaysMatch":{"appium:udid":"00008101-00053094213A001E","appium:bundleId":"com.gia.dev2021","appium:deviceName":"iPhone equipo técnico","platformName":"iOS","appium:automationName":"XCUITest","appium:xcodeOrgId":"6U86FCFMS3","appium:xcodeSigningId":"iPhone Developer","appium:updatedWDABundleId":"qalified.WebDriverAgentRunnerQalified","appium:includeSafariInWebviews":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},"firstMatch":[{}]}]
[AppiumDriver@3da1] Event 'newSessionRequested' logged at 1706027596840 (13:33:16 GMT-0300 (Uruguay Standard Time))
[Appium] Attempting to find matching driver for automationName 'XCUITest' and platformName 'iOS'
[Appium] The 'xcuitest' driver was installed and matched caps.
[Appium] Will require it at /Users/qalified/.appium/node_modules/appium-xcuitest-driver
[Appium] Requiring driver at /Users/qalified/.appium/node_modules/appium-xcuitest-driver/build/index.js
[AppiumDriver@3da1] Event 'newSessionStarted' logged at 1706027596846 (13:33:16 GMT-0300 (Uruguay Standard Time))
[AppiumDriver@3da1] 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: require() of ES Module /Users/qalified/node_modules/chalk/source/index.js from /Users/qalified/node_modules/@babel/code-frame/lib/index.js not supported.
[AppiumDriver@3da1] Instead change the require of /Users/qalified/node_modules/chalk/source/index.js in /Users/qalified/node_modules/@babel/code-frame/lib/index.js to a dynamic import() which is available in all CommonJS modules.)
[AppiumDriver@3da1] at DriverConfig.findMatchingDriver (/opt/homebrew/lib/node_modules/appium/lib/extension/driver-config.js:175:13)
[AppiumDriver@3da1] at AppiumDriver.createSession (/opt/homebrew/lib/node_modules/appium/lib/appium.js:644:11)
[HTTP] <-- POST /session 500 23 ms - 1646
[HTTP]
from appium.
Something is wrong with your local node deployment. I see the server is installed in /opt/homebrew/lib/node_modules/, while drivers are in /Users/qalified/.appium/node_modules/
So it is not clear why it tries to load anything from /Users/qalified/node_modules. Are you sure the above folder is needed?
from appium.
Yes, i have seen that on the logs. What happened is that this laptop had installed a node version through Homebrew and that was causing conflicts with some applications. I used brew uninstall node
to get rid of it and installed node from other source, installing it on '/usr/local/bin/node'. Do i have to do some extra steps to delete the Homebrew version of it?
from appium.
Does /Users/qalified/node_modules
exist? If so, just delete it. NPM will resolve packages in parent directories sometimes.
from appium.
That did the trick! Thank you very much!
from appium.
Related Issues (20)
- Page Source in webview context empty for emulator app - appium 2.0.0 HOT 2
- Unable to click on iOS alert with AppiumLibrary HOT 4
- Running: setGeoLocation, report unexpected data: {"Error":"InvalidService","Request":"StartService","Service":"com.apple.dt.simulatelocation"} (xcode: 15.3, iOS:17.4) HOT 8
- bug: Accessing WebView cookies makes test session hang HOT 1
- bug: <title>appium server session error HOT 2
- The selector "*" used with strategy "css selector" is invalid! HOT 2
- What are these symbols on Appium.io? HOT 1
- Not able to take screenshot on Tizen TV HOT 1
- Unable to interact with iOS paste permission dialog HOT 4
- bug: "Error: Appium Settings app is not running after 30000ms" HOT 5
- Unable to acknowledge iOS ATT popup HOT 2
- bug: < Make sure the active window is not constantly hogging the main UI thread (e.g. the application is being idle long enough), so the accessibility manager could do its work> HOT 5
- [Feat]: Enroll biometrics on a single simulator HOT 2
- Support for bun in appium-adb HOT 1
- [Feat]: Is it possible to display the version number within the WebDriverAgent (WDA) service API. HOT 7
- WebDriverAgent use-prebuilt-wda is broken HOT 12
- bug: getWindowHandles return 1 when open a new window on Safari (iOS 17.4) HOT 2
- _XCT_requestScreenshot in iOS 13.1.2 real device,doesn't work HOT 2
- bug: WDA getStatus keeps waiting when giving wdaLocalPort HOT 7
- [iOS] bug: executing script 'mobile: swipe' with no element specified fails proxying to unknown route /wda/swipe HOT 2
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 appium.