Hello Everyone
It’s my first time trying Appium. I have successfully installed Appium on Linux Mint 19 and the server runs fine with no issues. I am testing the following which is giving this error
Original error: The desired should not include both of an 'appPackage' and a 'browserName'
Below is the code which does contain appPackage and browserName
public class Test {
WebDriver driver;
public void setUp() throws MalformedURLException {
// Created object of DesiredCapabilities class.
DesiredCapabilities capabilities = new DesiredCapabilities();
// Set android deviceName desired capability. Set your device name.
capabilities.setCapability("deviceName", "ZY223VVBRX");
capabilities.setCapability(CapabilityType.BROWSER_NAME, "Android");
capabilities.setCapability(CapabilityType.VERSION, "7.0");
capabilities.setCapability("platformName", "Android");
capabilities.setCapability("appPackage", "com.skout.android");
capabilities.setCapability("appActivity", "com.skout.android.activities.registrationflow.RegStepOneLandingPage");
driver = new RemoteWebDriver(new URL("http://0.0.0.0:4723/wd/hub"), capabilities);
driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);
}
public void End() {
driver.quit();
}
}
Any idea why I am getting the error?