capabilities.setCapability("noSign", "True");
capabilities.setCapability(AndroidMobileCapabilityType.APP_ACTIVITY, ".MainActivity");
driver = new AndroidDriver<MobileElement>(url, capabilities);
}
@Test
<BUG>public void DemoTest() throws InterruptedException {
driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);</BUG>
AppDemoPage appdemo = new AppDemoPage(driver);
PageFactory.initElements(new AppiumFieldDecorator(driver, 5, TimeUnit.SECONDS), appdemo);
Assert.assertEquals(appdemo.getText(), "appiumDemo");

capabilities.setCapability("noSign", "True");
capabilities.setCapability(AndroidMobileCapabilityType.APP_ACTIVITY, ".MainActivity");
driver = new AndroidDriver<MobileElement>(url, capabilities);
}
@Test
public void DemoTest() throws InterruptedException {
String version =(String) driver.getCapabilities().getCapability(MobileCapabilityType.PLATFORM_VERSION);
System.out.println(version);
driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);
AppDemoPage appdemo = new AppDemoPage(driver);
PageFactory.initElements(new AppiumFieldDecorator(driver, 5, TimeUnit.SECONDS), appdemo);
Assert.assertEquals(appdemo.getText(), "appiumDemo");
