Open Rahul1970 opened 1 month ago
the error is expected. The main executable should be pointing to the build
subfolder where transpired sources are located. Instead it is pointing to an untraspiled version of it, which obviously cannot be run as is.
Please suggest what has to be done.
As Mykola said:
The main executable should be pointing to the
build
subfolder where transpired sources are located.
Try changing your AppiumPath
from [..]appium//lib//main.js
to [..]appium//build//lib//main.js
.
Hi Mykola and eglitise thanks a lot for your help. Please also suggest where to put chromedriver exe file for handling webview in uiautomator2 driver and flutter driver. Their paths in appium 2 are C:\Users\Rahul.singh2.appium\node_modules\appium-flutter-driver\node_modules\appium-chromedriver C:\Users\Rahul.singh2.appium\node_modules\appium-uiautomator2-driver\node_modules\appium-chromedriver. Also suggest what file to put in [Appium] Requiring driver at C:\Users\Rahul.singh2.appium\node_modules\appium-flutter-driver\build\lib\driver.js [Appium] Requiring driver at C:\Users\Rahul.singh2.appium\node_modules\appium-uiautomator2-driver\build\index.js these two locations
This is the place for issues. Please use Appium forum to ask questions
Personally I just launch the Appium server with the --allow-insecure chromedriver_autodownload
flag so I don't have to worry about the exact chromedriver version.
I am using appium 2.11.2 version and node js version is v20.3.1. I am able to run appium server in cmd but not in eclipse console.I am attaching the console logs. Please help to resolve this issue. Let me know if anything else to share.
The path i am using in the config file is AppiumNodePath = C://Program Files//nodejs//node.exe AppiumPath=C://Users//Rahul.singh2//AppData//Roaming//npm//node_modules//appium//lib//main.js
io.appium.java_client.service.local.AppiumServerHasNotBeenStartedLocallyException: The local appium server has not been started. The given Node.js executable: C:\Program Files\nodejs\node.exe Arguments: [C:\Users\Rahul.singh2\AppData\Roaming\npm\node_modules\appium\lib\main.js, --port, 4723, --address, 127.0.0.1, --log, D:\APPIUM\Automation\BusinessNextAutomation\target\resources\appium_server_logs47231, --base-path, /wd/hub/, --session-override] Process output: node:internal/errors:496 ErrorCaptureStackTrace(err); ^
Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'C:\Users\Rahul.singh2\AppData\Roaming\npm\node_modules\appium\lib\logsink' imported from C:\Users\Rahul.singh2\AppData\Roaming\npm\node_modules\appium\lib\main.js at new NodeError (node:internal/errors:405:5) at finalizeResolution (node:internal/modules/esm/resolve:224:11) at moduleResolve (node:internal/modules/esm/resolve:837:10) at defaultResolve (node:internal/modules/esm/resolve:1035:11) at DefaultModuleLoader.resolve (node:internal/modules/esm/loader:269:12) at DefaultModuleLoader.getModuleJob (node:internal/modules/esm/loader:153:32) at ModuleWrap. (node:internal/modules/esm/module_job:76:33)
at link (node:internal/modules/esm/module_job:75:36) {
code: 'ERR_MODULE_NOT_FOUND'
}
Node.js v20.3.1
Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://127.0.0.1:4723/wd/hub/status] to be available after 20014 ms at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:89) at io.appium.java_client.service.local.AppiumDriverLocalService.ping(AppiumDriverLocalService.java:147) at io.appium.java_client.service.local.AppiumDriverLocalService.start(AppiumDriverLocalService.java:169) ... 21 more Caused by: java.util.concurrent.TimeoutException at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:204) at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:87) ... 23 more