package com.seleniumtests.browserfactory;

import java.net.MalformedURLException;

import com.seleniumtests.driver.DriverConfig;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.android.AndroidDriver;

public class AndroidDriverFactory extends AbstractWebDriverFactory implements IWebDriverFactory{

	public AndroidDriverFactory(DriverConfig webDriverConfig) {
		super(webDriverConfig);
	}

	@Override
	public WebDriver createWebDriver() throws MalformedURLException {
		AndroidDriver driver = null;
		DriverConfig cfg = this.getWebDriverConfig();
		
		driver = new AndroidDriver(new AndroidCapabilitiesFactory().createCapabilities(cfg));
		
		this.setWebDriver(driver);
		return driver;
	}

}

@@ -40,48 +40,8 @@
 y;%0A%0A
-import java.net.MalformedURLException;%0A%0A
 impo
@@ -124,56 +124,46 @@
 er;%0A
+%0A
 import 
-org.openqa.selenium.android.AndroidDriver
+java.net.MalformedURLException
 ;%0A%0Ap
@@ -430,16 +430,18 @@
 ion %7B%0A%09%09
+/*
 AndroidD
@@ -631,16 +631,18 @@
 driver);
+*/
 %0A%09%09retur
@@ -643,22 +643,20 @@
 %09return 
-driver
+null
 ;%0A%09%7D%0A%0A%7D%0A

remove android driver reference