I am using Appium for android.
I am trying to set DesiredCapabilities like this:
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("BROWSER_NAME", "Android");
capabilities.setCapability("platformName", "Android");
capabilities.setCapability("deviceName", "Android");
capabilities.setCapability("appPackage","com.gauravdubey.gdlearning");
capabilities.setCapability("appActivity","com.gauravdubey.gdlearning.MainActivity");
(The lines below give the error - The constructor RemoteWebDriver(Capabilities) refers to the missing type Capabilities)
WebDriver driver=new RemoteWebDriver(new URL("http://ift.tt/1eWSHgW"),capabilities);
However the defintion asks for the same thing- one Url obejct and one of Desired Capabilities.
I cannot find what the exact problem is.
Aucun commentaire:
Enregistrer un commentaire