Hi,
I am trying to run test cases using unit. However I am getting the error “No such method Error: org.openqa.selenium.remote.errorhandler”. I have configured selenium 2.44.0, java-client-2.1.0 and son 2.3.1…I am not able to connect to IOSDriver…My code looks like this:
import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.List;
import org.junit.After;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.remote.DesiredCapabilities;
import io.appium.java_client.MobileBy;
import io.appium.java_client.ios.IOSDriver;
public class ActivityIndicators {
IOSDriver driver;
@Test
public void testNavigation() throws MalformedURLException{
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("platformVersion", "8.0");
capabilities.setCapability("platformName", "iOS");
capabilities.setCapability("deviceName", "iPhone6");
File app = new File("Macintosh HD/Users/ANYAARADHYA/Desktop/UICatalog.app");
capabilities.setCapability("app", app.getAbsolutePath());
driver = new IOSDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);
I am getting error in the last line of the code shown. Any help will be appreciated…Thanks in advance.