Getting http error when i try to launch simple website google.com,
I was able to launch the simulator snd connecting to host, but could not launch google.com anyone please tell where i went wrong
I am getting the below error for the following setup in iphone simulator
Selenium webdriver 2.5.31
appium 1.4.13
Mac 10.11.6
xcode 7.3
Exception in thread “main” java.lang.NoClassDefFoundError: org/openqa/selenium/remote/HttpVerb
at io.appium.java_client.AppiumDriver.postC(AppiumDriver.java:644)
at io.appium.java_client.AppiumDriver.(AppiumDriver.java:51)
at web_mobile.Assignment.main(Assignment.java:25)
Caused by: java.lang.ClassNotFoundException: org.openqa.selenium.remote.HttpVerb
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
… 3 more
here is the code
public static void main(String[] args) throws Exception {
// TODO Auto-generated method stub
//Mention all the Desired capabilities
DesiredCapabilities caps = new DesiredCapabilities();
caps.setCapability("browserName", "safari");
caps.setCapability("platformName", "iOS");
caps.setCapability("deviceName", "iPhone 6");
caps.setCapability("PlatformVersion", "9.3");
//connect appium with local host
AppiumDriver driver = new AppiumDriver(new URL("http://127.0.0.1:4723/wd/hub"), caps);
driver.get("www.envrmnt.com");
Thread.sleep(3000);
driver.close();