![]() withLogFile(new File("//Users/sagolGoru20/Programming/JavaProjects/MavenProjects/MobileAutomationProjects/firstAppiumProject/appiumLog.txt"))Īs the appium log shows, the server seems to be started fine but then throws the above error, so I think the issue may be with how I'm building the AppiumDriverLocalService object. withArgument(GeneralServerFlag.SESSION_OVERRIDE) withAppiumJS(new File("//Users/sagolGoru20/.npm-packages/lib/node_modules/appium/build/lib/main.js")) usingDriverExecutable(new File("//opt/homebrew/Cellar/node/15.8.0/bin/node")) Here is the code I am using to start the server programmatically:Įnvironment.put("PATH", "/usr/local/bin:" + System.getenv("PATH")) ĪppiumDriverLocalService server = AppiumDriverLocalService Here's the full appium log: Code To Reproduce Issue I originally thought that this was an issue with xcode or WDA, but if that were the case, the tests would fail no matter how Appium was started, and as mentioned previously, the tests pass perfectly fine when Appium is started manually (via terminal), so it might be an issue with the PATH or environment variables upon execution from Java, not sure though. ![]() Real device or emulator/simulator: Simulator.Mobile platform/version under test: iOS Simulator (iPhone SE 2nd Generation 14.4).Node.js version (unless using Appium.app|exe): Node.js v15.8.0. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |