我試圖以編程方式運行Appium服務器。我想所有的Appium被提供,但沒有得到任何結果以編程方式運行appium服務器
在命令行,如果我想C:\Users\User>appium
它的啓動服務器的可能選項。如何通過使用java代碼來做同樣的事情?
注:Appium的版本是1.6.5
AppiumDriverLocalService service=AppiumDriverLocalService.buildDefaultService();
service.start();
這我使用的編程運行appium服務器什麼的代碼。
我得到的錯誤是
java.lang.NoClassDefFoundError: org/apache/commons/validator/routines/InetAddressValidator
你在執行程序時會遇到什麼錯誤?以及那裏正在使用的代碼是什麼? – nullpointer
AppiumDriverLocalService service = AppiumDriverLocalService.buildDefaultService(); \t service.start();這是我用來以編程方式運行appium服務器的代碼。我得到的錯誤是java.lang.NoClassDefFoundError:org/apache/commons/validator/routines/InetAddressValidator – suryakanta939
更新問題請完整性可能會丟失提供額外評論中的細節。 – nullpointer