ashwithpoojary98
ashwithpoojary98
@dipakkumar1225 check "Logs" folder is created or not (System.getProperty("user.dir") + File.separator + "Logs" + File.separator + "Server.logs")). If not create the Logs folder and try!!
please try below code, File logDir = new File(System.getProperty("user.dir") + File.separator + "Logs"); if (!logDir.exists()) { logDir.mkdirs(); } return AppiumDriverLocalService.buildService(new AppiumServiceBuilder() .withIPAddress("127.0.0.1") .usingPort(DEFAULT_APPIUM_SERVER_PORT) .withArgument(GeneralServerFlag.BASEPATH, "/wd/hub/") .withArgument(GeneralServerFlag.LOG_LEVEL, "info:debug") .withArgument(GeneralServerFlag.USE_DRIVERS, "UiAutomator2") .withArgument(GeneralServerFlag.ALLOW_INSECURE,...
File serverLogsFile = new File(logDir, "Servers.logs"); if (!serverLogsFile.exists()) { try { serverLogsFile.createNewFile(); } catch (IOException e) { e.printStackTrace(); } } don't create a log file directly use it!! return AppiumDriverLocalService.buildService(new...
> > File serverLogsFile = new File(logDir, "Servers.logs"); if (!serverLogsFile.exists()) { try { serverLogsFile.createNewFile(); } catch (IOException e) { e.printStackTrace(); } } don't create a log file directly use it!!...
@wazzeps try it on the real device or other simulator
@varun2810 check your pom file for jdk
@Mahee17 Check your Xcode version and follow https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md this steps
@manivannan-r uninstall Appium and install the latest version of Appium(Try homebrew)
@JYOTIPRAKASH225 try the following code, Add base Path to the builder argument new AppiumServiceBuilder() .usingAnyFreePort() .withArgument(GeneralServerFlag.BASEPATH, "/wd/hub") .build() .start();
@JYOTIPRAKASH225 What is the JDK version that you are using? if below 11 update it!!