Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting java.lang.NoClassDefFoundError: org/openqa/selenium/HasInputDevices while running Appium project #590

Closed
sjenasears opened this issue Mar 6, 2017 · 4 comments

Comments

@sjenasears
Copy link

Java.lang.NoClassDefFoundError: org/openqa/selenium/HasInputDevices
getting this error while running appium script below in eclipse

@before
public void setUp() throws Exception {

DesiredCapabilities capabilities = new DesiredCapabilities();

capabilities.setCapability(MobileCapabilityType.APPIUM_VERSION, "1.6.4-beta");
capabilities.setCapability(MobileCapabilityType.PLATFORM_NAME, "iOS");
capabilities.setCapability(MobileCapabilityType.PLATFORM_VERSION, "10.2");
capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, "iPhone 6s");
//capabilities.setCapability(MobileCapabilityType.UDID, "");

//capabilities.setCapability(MobileCapabilityType.APP, "/Users/sjena/Desktop/Relay_Appium/ipa/SYW_Relay.app");
capabilities.setCapability(MobileCapabilityType.APP, "settings");


capabilities.setCapability(IOSMobileCapabilityType.LAUNCH_TIMEOUT, "500000");
capabilities.setCapability(MobileCapabilityType.AUTOMATION_NAME, AutomationName.IOS_XCUI_TEST);
driver = new IOSDriver<WebElement>(new URL("http://0.0.0.0:4723/wd/hub"), capabilities);
driver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);

}

@sjenasears
Copy link
Author

any solution?

@TikhomirovSergey
Copy link
Contributor

@sjenasears This is dependency conflict. Also I think that it is the duplicate of #588. I think now it should be resolved. Could you read the mentioned issue.

@sjenasears
Copy link
Author

No it did not solve the error. I have included all jars for 5.0.0 Beta5

@TikhomirovSergey
Copy link
Contributor

@sjenasears
Could you try it on 5.0.0-BETA6? Also could you check dependencies. I think that it is possible that your project may depend on some older Selenium version somehow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants