[py] Delete Android Driver support
Cr-Mirrored-From: https://chromium.googlesource.com/external/github.com/SeleniumHQ/selenium
Cr-Mirrored-Commit: 4bde144f512c5761a3209d17465ee3475a462bcd
diff --git a/selenium/webdriver/__init__.py b/selenium/webdriver/__init__.py
index c1778f2..2bb91a8 100644
--- a/selenium/webdriver/__init__.py
+++ b/selenium/webdriver/__init__.py
@@ -29,7 +29,6 @@
from .safari.webdriver import WebDriver as Safari # noqa
from .blackberry.webdriver import WebDriver as BlackBerry # noqa
from .phantomjs.webdriver import WebDriver as PhantomJS # noqa
-from .android.webdriver import WebDriver as Android # noqa
from .webkitgtk.webdriver import WebDriver as WebKitGTK # noqa
from .webkitgtk.options import Options as WebKitGTKOptions # noqa
from .wpewebkit.webdriver import WebDriver as WPEWebKit # noqa
diff --git a/selenium/webdriver/android/__init__.py b/selenium/webdriver/android/__init__.py
deleted file mode 100644
index a5b1e6f..0000000
--- a/selenium/webdriver/android/__init__.py
+++ /dev/null
@@ -1,16 +0,0 @@
-# Licensed to the Software Freedom Conservancy (SFC) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The SFC licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
diff --git a/selenium/webdriver/android/webdriver.py b/selenium/webdriver/android/webdriver.py
deleted file mode 100644
index 68a55c2..0000000
--- a/selenium/webdriver/android/webdriver.py
+++ /dev/null
@@ -1,42 +0,0 @@
-# Licensed to the Software Freedom Conservancy (SFC) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The SFC licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-from selenium.webdriver.remote.webdriver import WebDriver as RemoteWebDriver
-from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
-
-
-class WebDriver(RemoteWebDriver):
- """
- Simple RemoteWebDriver wrapper to start connect to Selendroid's WebView app
-
- For more info on getting started with Selendroid
- http://selendroid.io/mobileWeb.html
- """
-
- def __init__(self, host="localhost", port=4444, desired_capabilities=DesiredCapabilities.ANDROID):
- """
- Creates a new instance of Selendroid using the WebView app
-
- :Args:
- - host - location of where selendroid is running
- - port - port that selendroid is running on
- - desired_capabilities: Dictionary object with capabilities
- """
- RemoteWebDriver.__init__(
- self,
- command_executor="http://%s:%d/wd/hub" % (host, port),
- desired_capabilities=desired_capabilities)
diff --git a/selenium/webdriver/common/desired_capabilities.py b/selenium/webdriver/common/desired_capabilities.py
index 74cd0c0..258e78e 100644
--- a/selenium/webdriver/common/desired_capabilities.py
+++ b/selenium/webdriver/common/desired_capabilities.py
@@ -107,12 +107,6 @@
"platform": "MAC",
}
- ANDROID = {
- "browserName": "android",
- "version": "",
- "platform": "ANDROID",
- }
-
PHANTOMJS = {
"browserName": "phantomjs",
"version": "",