Hi Jonahss,
Can you please help me in launching android app by using AndroidDriver constructor .
Actually i am trying to launch android app by using following code.
void launchApp()
{
try {
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("platformVersion", "4.4");
capabilities.setCapability("platformName", "Android");
capabilities.setCapability("app", "D:/ETPortfolio/app/ET_V2.0.0.apk");
capabilities.setCapability("appActivity", "com.et.reader.activities.StartPageActivity");
capabilities.setCapability("appPackage", "com.et.reader.activities");
capabilities.setCapability("deviceName", "Android")
AndroidDriver driver = new AppiumDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);
} catch(Exception e){
e.printStackTrace();
}
But i get an error ie. 'Driver can not be resolved a variable'. Please tell me ,Can i launch the app using AndroidDriver or not??? Any quick help will be appreciable.