我正在尝试执行此程序:
public class IosSettings {
public static AppiumDriver driver;
public static void main(String[] args) throws MalformedURLException, InterruptedException{
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("deviceName", "sameer's iphone");
capabilities.setCapability("platformName", "iOS");
capabilities.setCapability("platformVersion", "11.4");
capabilities.setCapability("app", "settings");
driver = new IOSDriver(new URL("https://0.0.0.0:4723/wd/hub"), capabilities);
driver.manage().timeouts().implicitlyWait(80, TimeUnit.SECONDS);
}
}
但是,我收到了这个错误:
线程中的异常" main" java.lang.NoClassDefFoundError:javax / websocket / DeploymentException 在io.appium.java_client.ios.ListensToSyslogMessages。(ListensToSyslogMessages.java:34) 在appiumFirstTest.IosSettings.main(IosSettings.java:25)