Renaming back 'py' directory, use of 'legacy_create_init' argument resolved the name collision.

Cr-Mirrored-From: https://chromium.googlesource.com/external/github.com/SeleniumHQ/selenium
Cr-Mirrored-Commit: b300c358f65f33c0cf43177316f433601c027bdb
diff --git a/docs/Makefile b/docs/Makefile
new file mode 100644
index 0000000..2d48370
--- /dev/null
+++ b/docs/Makefile
@@ -0,0 +1,131 @@
+# Makefile for Sphinx documentation
+#
+
+# You can set these variables from the command line.
+SPHINXOPTS    =
+SPHINXBUILD   = sphinx-build
+PAPER         =
+BUILDDIR      = build
+
+# Internal variables.
+PAPEROPT_a4     = -D latex_paper_size=a4
+PAPEROPT_letter = -D latex_paper_size=letter
+ALLSPHINXOPTS   = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
+HTML_DESTINATION     = ../../docs/api/py
+
+.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest
+
+help:
+	@echo "Please use \`make <target>' where <target> is one of"
+	@echo "  html       to make standalone HTML files"
+	@echo "  dirhtml    to make HTML files named index.html in directories"
+	@echo "  singlehtml to make a single large HTML file"
+	@echo "  pickle     to make pickle files"
+	@echo "  json       to make JSON files"
+	@echo "  htmlhelp   to make HTML files and a HTML help project"
+	@echo "  qthelp     to make HTML files and a qthelp project"
+	@echo "  devhelp    to make HTML files and a Devhelp project"
+	@echo "  epub       to make an epub"
+	@echo "  latex      to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
+	@echo "  latexpdf   to make LaTeX files and run them through pdflatex"
+	@echo "  text       to make text files"
+	@echo "  man        to make manual pages"
+	@echo "  changes    to make an overview of all changed/added/deprecated items"
+	@echo "  linkcheck  to check all external links for integrity"
+	@echo "  doctest    to run all doctests embedded in the documentation (if enabled)"
+
+clean:
+	-rm -rf $(BUILDDIR)/*
+
+html: clean
+	$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(HTML_DESTINATION)
+	@echo
+	@echo "Build finished. The HTML pages are in $(HTML_DESTINATION)."
+
+dirhtml:
+	$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
+	@echo
+	@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
+
+singlehtml:
+	$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
+	@echo
+	@echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
+
+pickle:
+	$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
+	@echo
+	@echo "Build finished; now you can process the pickle files."
+
+json:
+	$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
+	@echo
+	@echo "Build finished; now you can process the JSON files."
+
+htmlhelp:
+	$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
+	@echo
+	@echo "Build finished; now you can run HTML Help Workshop with the" \
+	      ".hhp project file in $(BUILDDIR)/htmlhelp."
+
+qthelp:
+	$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
+	@echo
+	@echo "Build finished; now you can run "qcollectiongenerator" with the" \
+	      ".qhcp project file in $(BUILDDIR)/qthelp, like this:"
+	@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/Selenium.qhcp"
+	@echo "To view the help file:"
+	@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/Selenium.qhc"
+
+devhelp:
+	$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
+	@echo
+	@echo "Build finished."
+	@echo "To view the help file:"
+	@echo "# mkdir -p $$HOME/.local/share/devhelp/Selenium"
+	@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/Selenium"
+	@echo "# devhelp"
+
+epub:
+	$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
+	@echo
+	@echo "Build finished. The epub file is in $(BUILDDIR)/epub."
+
+latex:
+	$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
+	@echo
+	@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
+	@echo "Run \`make' in that directory to run these through (pdf)latex" \
+	      "(use \`make latexpdf' here to do that automatically)."
+
+latexpdf:
+	$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
+	@echo "Running LaTeX files through pdflatex..."
+	make -C $(BUILDDIR)/latex all-pdf
+	@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
+
+text:
+	$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
+	@echo
+	@echo "Build finished. The text files are in $(BUILDDIR)/text."
+
+man:
+	$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
+	@echo
+	@echo "Build finished. The manual pages are in $(BUILDDIR)/man."
+
+changes:
+	$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
+	@echo
+	@echo "The overview file is in $(BUILDDIR)/changes."
+
+linkcheck:
+	$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
+	@echo
+	@echo "Link check complete; look for any errors in the above output " \
+	      "or in $(BUILDDIR)/linkcheck/output.txt."
+
+doctest:
+	$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
+	@echo "Testing of doctests in the sources finished, look at the " \
+	      "results in $(BUILDDIR)/doctest/output.txt."
diff --git a/docs/source/api.rst b/docs/source/api.rst
new file mode 100644
index 0000000..82f128e
--- /dev/null
+++ b/docs/source/api.rst
@@ -0,0 +1,149 @@
+:orphan:
+
+======================
+Selenium Documentation
+======================
+
+Common
+------
+
+.. currentmodule:: selenium.common
+.. autosummary::
+   :toctree: common
+
+   selenium.common.exceptions
+
+Webdriver.common
+----------------
+
+.. currentmodule:: selenium.webdriver.common
+.. autosummary::
+   :toctree: webdriver
+
+   selenium.webdriver.common.action_chains
+   selenium.webdriver.common.alert
+   selenium.webdriver.common.by
+   selenium.webdriver.common.desired_capabilities
+   selenium.webdriver.common.keys
+   selenium.webdriver.common.touch_actions
+   selenium.webdriver.common.utils
+   selenium.webdriver.common.proxy
+   selenium.webdriver.common.service
+   selenium.webdriver.common.html5.application_cache
+
+Webdriver.support
+-----------------
+
+.. currentmodule:: selenium.webdriver.support
+.. autosummary::
+   :toctree: webdriver_support
+
+   selenium.webdriver.support.abstract_event_listener
+   selenium.webdriver.support.color
+   selenium.webdriver.support.event_firing_webdriver
+   selenium.webdriver.support.expected_conditions
+   selenium.webdriver.support.select
+   selenium.webdriver.support.wait
+
+Webdriver.android
+-----------------
+
+.. currentmodule:: selenium.webdriver.android
+.. autosummary::
+   :toctree: webdriver_android
+
+   selenium.webdriver.android.webdriver
+
+Webdriver.chrome
+----------------
+
+.. currentmodule:: selenium.webdriver.chrome
+.. autosummary::
+   :toctree: webdriver_chrome
+
+   selenium.webdriver.chrome.options
+   selenium.webdriver.chrome.service
+   selenium.webdriver.chrome.webdriver
+
+Webdriver.firefox
+-----------------
+
+.. currentmodule:: selenium.webdriver.firefox
+.. autosummary::
+   :toctree: webdriver_firefox
+
+   selenium.webdriver.firefox.extension_connection
+   selenium.webdriver.firefox.firefox_binary
+   selenium.webdriver.firefox.options
+   selenium.webdriver.firefox.firefox_profile
+   selenium.webdriver.firefox.webdriver
+
+Webdriver.ie
+------------
+
+.. currentmodule:: selenium.webdriver.ie
+.. autosummary::
+   :toctree: webdriver_ie
+
+   selenium.webdriver.ie.webdriver
+
+Webdriver.opera
+---------------
+
+.. currentmodule:: selenium.webdriver.opera
+.. autosummary::
+   :toctree: webdriver_opera
+
+   selenium.webdriver.opera.webdriver
+
+Webdriver.phantomjs
+-------------------
+
+.. currentmodule:: selenium.webdriver.phantomjs
+.. autosummary::
+   :toctree: webdriver_phantomjs
+
+   selenium.webdriver.phantomjs.service
+   selenium.webdriver.phantomjs.webdriver
+
+Webdriver.remote
+----------------
+
+.. currentmodule:: selenium.webdriver.remote
+.. autosummary::
+   :toctree: webdriver_remote
+
+   selenium.webdriver.remote.command
+   selenium.webdriver.remote.errorhandler
+   selenium.webdriver.remote.mobile
+   selenium.webdriver.remote.remote_connection
+   selenium.webdriver.remote.utils
+   selenium.webdriver.remote.webdriver
+   selenium.webdriver.remote.webelement
+
+Webdriver.safari
+----------------
+
+.. currentmodule:: selenium.webdriver.safari
+.. autosummary::
+  :toctree: webdriver_safari
+
+  selenium.webdriver.safari.service
+  selenium.webdriver.safari.webdriver
+
+Webdriver.webkitgtk
+-------------------
+
+.. currentmodule:: selenium.webdriver.webkitgtk
+.. autosummary::
+  :toctree: webdriver_webkitgtk
+
+  selenium.webdriver.webkitgtk.options
+  selenium.webdriver.webkitgtk.service
+  selenium.webdriver.webkitgtk.webdriver
+
+Indices and tables
+
+* :ref:`genindex`
+* :ref:`modindex`
+* :ref:`search`
diff --git a/docs/source/common/selenium.common.exceptions.rst b/docs/source/common/selenium.common.exceptions.rst
new file mode 100644
index 0000000..356d256
--- /dev/null
+++ b/docs/source/common/selenium.common.exceptions.rst
@@ -0,0 +1,4 @@
+selenium.common.exceptions
+==========================
+
+.. automodule:: selenium.common.exceptions
diff --git a/docs/source/conf.py b/docs/source/conf.py
new file mode 100644
index 0000000..992ea3b
--- /dev/null
+++ b/docs/source/conf.py
@@ -0,0 +1,274 @@
+# 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 __future__ import unicode_literals
+
+import sys, os, os.path
+
+# If extensions (or modules to document with autodoc) are in another directory,
+# add these directories to sys.path here. If the directory is relative to the
+# documentation root, use os.path.abspath to make it absolute, like shown here.
+# sys.path.insert(0, os.path.abspath('.'))
+sys.path.insert(0, os.path.join(os.getcwd(), "..", ".."))
+
+# -- General configuration -----------------------------------------------------
+
+# If your documentation needs a minimal Sphinx version, state it here.
+#needs_sphinx = '1.0'
+
+# Add any Sphinx extension module names here, as strings. They can be extensions
+# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
+extensions = ['sphinx.ext.autodoc', 'sphinx.ext.autosummary', 'sphinx.ext.doctest', 'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.imgmath', 'sphinx.ext.viewcode']
+
+# Add any paths that contain templates here, relative to this directory.
+templates_path = ['_templates']
+
+# The suffix of source filenames.
+source_suffix = '.rst'
+
+# The encoding of source files.
+#source_encoding = 'utf-8-sig'
+
+# The master toctree document.
+master_doc = 'index'
+
+# General information about the project.
+project = 'Selenium'
+copyright = '2011, plightbo, simon.m.stewart, hbchai, jrhuggins, et al.'
+
+# The version info for the project you're documenting, acts as replacement for
+# |version| and |release|, also used in various other places throughout the
+# built documents.
+#
+# The short X.Y version.
+version = '3.141'
+# The full version, including alpha/beta/rc tags.
+release = version
+
+# The language for content autogenerated by Sphinx. Refer to documentation
+# for a list of supported languages.
+#language = None
+
+# There are two options for replacing |today|: either, you set today to some
+# non-false value, then it is used:
+#today = ''
+# Else, today_fmt is used as the format for a strftime call.
+#today_fmt = '%B %d, %Y'
+
+# List of patterns, relative to source directory, that match files and
+# directories to ignore when looking for source files.
+exclude_patterns = []
+
+# The reST default role (used for this markup: `text`) to use for all documents.
+#default_role = None
+
+# If true, '()' will be appended to :func: etc. cross-reference text.
+#add_function_parentheses = True
+
+# If true, the current module name will be prepended to all description
+# unit titles (such as .. function::).
+#add_module_names = True
+
+# If true, sectionauthor and moduleauthor directives will be shown in the
+# output. They are ignored by default.
+#show_authors = False
+
+# The name of the Pygments (syntax highlighting) style to use.
+pygments_style = 'sphinx'
+
+# A list of ignored prefixes for module index sorting.
+#modindex_common_prefix = []
+
+
+# -- Options for HTML output ---------------------------------------------------
+
+# The theme to use for HTML and HTML Help pages.  See the documentation for
+# a list of builtin themes.
+html_theme = 'default'
+
+# Theme options are theme-specific and customize the look and feel of a theme
+# further.  For a list of options available for each theme, see the
+# documentation.
+#html_theme_options = {}
+
+# Add any paths that contain custom themes here, relative to this directory.
+#html_theme_path = []
+
+# The name for this set of Sphinx documents.  If None, it defaults to
+# "<project> v<release> documentation".
+#html_title = None
+
+# A shorter title for the navigation bar.  Default is the same as html_title.
+#html_short_title = None
+
+# The name of an image file (relative to this directory) to place at the top
+# of the sidebar.
+#html_logo = None
+
+# The name of an image file (within the static path) to use as favicon of the
+# docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
+# pixels large.
+#html_favicon = None
+
+# Add any paths that contain custom static files (such as style sheets) here,
+# relative to this directory. They are copied after the builtin static files,
+# so a file named "default.css" will overwrite the builtin "default.css".
+html_static_path = []
+
+# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
+# using the given strftime format.
+#html_last_updated_fmt = '%b %d, %Y'
+
+# If true, SmartyPants will be used to convert quotes and dashes to
+# typographically correct entities.
+#html_use_smartypants = True
+
+# Custom sidebar templates, maps document names to template names.
+#html_sidebars = {}
+
+# Additional templates that should be rendered to pages, maps page names to
+# template names.
+#html_additional_pages = {}
+
+# If false, no module index is generated.
+#html_domain_indices = True
+
+# If false, no index is generated.
+#html_use_index = True
+
+# If true, the index is split into individual pages for each letter.
+#html_split_index = False
+
+# If true, links to the reST sources are added to the pages.
+html_show_sourcelink = True
+
+# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
+html_show_sphinx = False
+
+# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
+#html_show_copyright = True
+
+# If true, an OpenSearch description file will be output, and all pages will
+# contain a <link> tag referring to it.  The value of this option must be the
+# base URL from which the finished HTML is served.
+#html_use_opensearch = ''
+
+# This is the file name suffix for HTML files (e.g. ".xhtml").
+#html_file_suffix = None
+
+# Output file base name for HTML help builder.
+htmlhelp_basename = 'Seleniumdoc'
+
+
+# -- Options for LaTeX output --------------------------------------------------
+
+# The paper size ('letter' or 'a4').
+#latex_paper_size = 'letter'
+
+# The font size ('10pt', '11pt' or '12pt').
+#latex_font_size = '10pt'
+
+# Grouping the document tree into LaTeX files. List of tuples
+# (source start file, target name, title, author, documentclass [howto/manual]).
+latex_documents = [
+  ('index', 'Selenium.tex', 'Selenium Documentation',
+   'plightbo, simon.m.stewart, hbchai, jrhuggins, et al.', 'manual'),
+]
+
+# The name of an image file (relative to this directory) to place at the top of
+# the title page.
+#latex_logo = None
+
+# For "manual" documents, if this is true, then toplevel headings are parts,
+# not chapters.
+#latex_use_parts = False
+
+# If true, show page references after internal links.
+#latex_show_pagerefs = False
+
+# If true, show URL addresses after external links.
+#latex_show_urls = False
+
+# Additional stuff for the LaTeX preamble.
+#latex_preamble = ''
+
+# Documents to append as an appendix to all manuals.
+#latex_appendices = []
+
+# If false, no module index is generated.
+#latex_domain_indices = True
+
+
+# -- Options for manual page output --------------------------------------------
+
+# One entry per manual page. List of tuples
+# (source start file, name, description, authors, manual section).
+man_pages = [
+    ('index', 'selenium', 'Selenium Documentation',
+     ['plightbo, simon.m.stewart, hbchai, jrhuggins, et al.'], 1)
+]
+
+
+# -- Options for Epub output ---------------------------------------------------
+
+# Bibliographic Dublin Core info.
+epub_title = 'Selenium'
+epub_author = 'plightbo, simon.m.stewart, hbchai, jrhuggins, et al.'
+epub_publisher = 'plightbo, simon.m.stewart, hbchai, jrhuggins, et al.'
+epub_copyright = '2011, plightbo, simon.m.stewart, hbchai, jrhuggins, et al.'
+
+# The language of the text. It defaults to the language option
+# or en if the language is not set.
+#epub_language = ''
+
+# The scheme of the identifier. Typical schemes are ISBN or URL.
+#epub_scheme = ''
+
+# The unique identifier of the text. This can be a ISBN number
+# or the project homepage.
+#epub_identifier = ''
+
+# A unique identification for the text.
+#epub_uid = ''
+
+# HTML files that should be inserted before the pages created by sphinx.
+# The format is a list of tuples containing the path and title.
+#epub_pre_files = []
+
+# HTML files shat should be inserted after the pages created by sphinx.
+# The format is a list of tuples containing the path and title.
+#epub_post_files = []
+
+# A list of files that should not be packed into the epub file.
+#epub_exclude_files = []
+
+# The depth of the table of contents in toc.ncx.
+#epub_tocdepth = 3
+
+# Allow duplicate toc entries.
+#epub_tocdup = True
+
+
+# Example configuration for intersphinx: refer to the Python standard library.
+intersphinx_mapping = {'http://docs.python.org/': None}
+
+# 'members' includes anything that has a docstring, 'undoc-members' includes
+# functions without docstrings.
+autodoc_default_flags = ['members', 'undoc-members']
+
+# Include __init__ comments
+autoclass_content = "both"
diff --git a/docs/source/index.rst b/docs/source/index.rst
new file mode 100644
index 0000000..8ef805d
--- /dev/null
+++ b/docs/source/index.rst
@@ -0,0 +1,145 @@
+======================
+Selenium Client Driver
+======================
+
+Introduction
+============
+
+Python language bindings for Selenium WebDriver.
+
+The `selenium` package is used to automate web browser interaction from Python.
+
++-----------+--------------------------------------------------------------------------------------+
+| **Home**: | http://www.seleniumhq.org                                                            |
++-----------+--------------------------------------------------------------------------------------+
+| **Docs**: | `selenium package API <https://seleniumhq.github.io/selenium/docs/api/py/api.html>`_ |
++-----------+--------------------------------------------------------------------------------------+
+| **Dev**:  | https://github.com/SeleniumHQ/Selenium                                               |
++-----------+--------------------------------------------------------------------------------------+
+| **PyPI**: | https://pypi.org/project/selenium/                                                   |
++-----------+--------------------------------------------------------------------------------------+
+| **IRC**:  | **#selenium** channel on freenode                                                    |
++-----------+--------------------------------------------------------------------------------------+
+
+Several browsers/drivers are supported (Firefox, Chrome, Internet Explorer), as well as the Remote protocol.
+
+Supported Python Versions
+=========================
+
+* Python 2.7, 3.4+
+
+Installing
+==========
+
+If you have `pip <https://pip.pypa.io/>`_ on your system, you can simply install or upgrade the Python bindings::
+
+    pip install -U selenium
+
+Alternately, you can download the source distribution from `PyPI <https://pypi.org/project/selenium/#files>`_ (e.g. selenium-4.0.0a1.tar.gz), unarchive it, and run::
+
+    python setup.py install
+
+Note: You may want to consider using `virtualenv <http://www.virtualenv.org/>`_ to create isolated Python environments.
+
+Drivers
+=======
+
+Selenium requires a driver to interface with the chosen browser. Firefox,
+for example, requires `geckodriver <https://github.com/mozilla/geckodriver/releases>`_, which needs to be installed before the below examples can be run. Make sure it's in your `PATH`, e. g., place it in `/usr/bin` or `/usr/local/bin`.
+
+Failure to observe this step will give you an error `selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH.`
+
+Other supported browsers will have their own drivers available. Links to some of the more popular browser drivers follow.
+
++--------------+-----------------------------------------------------------------------+
+| **Chrome**:  | https://sites.google.com/a/chromium.org/chromedriver/downloads        |
++--------------+-----------------------------------------------------------------------+
+| **Edge**:    | https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/ |
++--------------+-----------------------------------------------------------------------+
+| **Firefox**: | https://github.com/mozilla/geckodriver/releases                       |
++--------------+-----------------------------------------------------------------------+
+| **Safari**:  | https://webkit.org/blog/6900/webdriver-support-in-safari-10/          |
++--------------+-----------------------------------------------------------------------+
+
+Example 0:
+==========
+
+* open a new Firefox browser
+* load the page at the given URL
+
+.. code-block:: python
+
+    from selenium import webdriver
+
+    browser = webdriver.Firefox()
+    browser.get('http://seleniumhq.org/')
+
+Example 1:
+==========
+
+* open a new Firefox browser
+* load the Yahoo homepage
+* search for "seleniumhq"
+* close the browser
+
+.. code-block:: python
+
+    from selenium import webdriver
+    from selenium.webdriver.common.keys import Keys
+
+    browser = webdriver.Firefox()
+
+    browser.get('http://www.yahoo.com')
+    assert 'Yahoo' in browser.title
+
+    elem = browser.find_element_by_name('p')  # Find the search box
+    elem.send_keys('seleniumhq' + Keys.RETURN)
+
+    browser.quit()
+
+Example 2:
+==========
+
+Selenium WebDriver is often used as a basis for testing web applications.  Here is a simple example using Python's standard `unittest <http://docs.python.org/3/library/unittest.html>`_ library:
+
+.. code-block:: python
+
+    import unittest
+    from selenium import webdriver
+
+    class GoogleTestCase(unittest.TestCase):
+
+        def setUp(self):
+            self.browser = webdriver.Firefox()
+            self.addCleanup(self.browser.quit)
+
+        def testPageTitle(self):
+            self.browser.get('http://www.google.com')
+            self.assertIn('Google', self.browser.title)
+
+    if __name__ == '__main__':
+        unittest.main(verbosity=2)
+
+Selenium Server (optional)
+==========================
+
+For normal WebDriver scripts (non-Remote), the Java server is not needed.
+
+However, to use Selenium Webdriver Remote or the legacy Selenium API (Selenium-RC), you need to also run the Selenium server.  The server requires a Java Runtime Environment (JRE).
+
+Download the server separately, from: http://selenium-release.storage.googleapis.com/4.0/selenium-server-standalone-4.0.0.jar
+
+Run the server from the command line::
+
+    java -jar selenium-server-standalone-3.141.0.jar
+
+Then run your Python client scripts.
+
+Use The Source Luke!
+====================
+
+View source code online:
+
++-----------+-------------------------------------------------------+
+| official: | https://github.com/SeleniumHQ/selenium/tree/master/py |
++-----------+-------------------------------------------------------+
diff --git a/docs/source/webdriver/selenium.webdriver.common.action_chains.rst b/docs/source/webdriver/selenium.webdriver.common.action_chains.rst
new file mode 100644
index 0000000..07fff7b
--- /dev/null
+++ b/docs/source/webdriver/selenium.webdriver.common.action_chains.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.common.action_chains
+=======================================
+
+.. automodule:: selenium.webdriver.common.action_chains
diff --git a/docs/source/webdriver/selenium.webdriver.common.alert.rst b/docs/source/webdriver/selenium.webdriver.common.alert.rst
new file mode 100644
index 0000000..ac88438
--- /dev/null
+++ b/docs/source/webdriver/selenium.webdriver.common.alert.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.common.alert
+===============================
+
+.. automodule:: selenium.webdriver.common.alert
diff --git a/docs/source/webdriver/selenium.webdriver.common.by.rst b/docs/source/webdriver/selenium.webdriver.common.by.rst
new file mode 100644
index 0000000..cdf6941
--- /dev/null
+++ b/docs/source/webdriver/selenium.webdriver.common.by.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.common.by
+============================
+
+.. automodule:: selenium.webdriver.common.by
diff --git a/docs/source/webdriver/selenium.webdriver.common.desired_capabilities.rst b/docs/source/webdriver/selenium.webdriver.common.desired_capabilities.rst
new file mode 100644
index 0000000..30fdf17
--- /dev/null
+++ b/docs/source/webdriver/selenium.webdriver.common.desired_capabilities.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.common.desired_capabilities
+==============================================
+
+.. automodule:: selenium.webdriver.common.desired_capabilities
diff --git a/docs/source/webdriver/selenium.webdriver.common.html5.application_cache.rst b/docs/source/webdriver/selenium.webdriver.common.html5.application_cache.rst
new file mode 100644
index 0000000..e2e0639
--- /dev/null
+++ b/docs/source/webdriver/selenium.webdriver.common.html5.application_cache.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.common.html5.application_cache
+====================================================
+
+.. automodule:: selenium.webdriver.common.html5.application_cache
diff --git a/docs/source/webdriver/selenium.webdriver.common.keys.rst b/docs/source/webdriver/selenium.webdriver.common.keys.rst
new file mode 100644
index 0000000..1704a17
--- /dev/null
+++ b/docs/source/webdriver/selenium.webdriver.common.keys.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.common.keys
+==============================
+
+.. automodule:: selenium.webdriver.common.keys
diff --git a/docs/source/webdriver/selenium.webdriver.common.proxy.rst b/docs/source/webdriver/selenium.webdriver.common.proxy.rst
new file mode 100644
index 0000000..06a77f1
--- /dev/null
+++ b/docs/source/webdriver/selenium.webdriver.common.proxy.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.common.proxy
+===============================
+
+.. automodule:: selenium.webdriver.common.proxy
diff --git a/docs/source/webdriver/selenium.webdriver.common.service.rst b/docs/source/webdriver/selenium.webdriver.common.service.rst
new file mode 100644
index 0000000..e313ced
--- /dev/null
+++ b/docs/source/webdriver/selenium.webdriver.common.service.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.common.service
+=================================
+
+.. automodule:: selenium.webdriver.common.service
diff --git a/docs/source/webdriver/selenium.webdriver.common.touch_actions.rst b/docs/source/webdriver/selenium.webdriver.common.touch_actions.rst
new file mode 100644
index 0000000..7bc9aa6
--- /dev/null
+++ b/docs/source/webdriver/selenium.webdriver.common.touch_actions.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.common.touch_actions
+=======================================
+
+.. automodule:: selenium.webdriver.common.touch_actions
diff --git a/docs/source/webdriver/selenium.webdriver.common.utils.rst b/docs/source/webdriver/selenium.webdriver.common.utils.rst
new file mode 100644
index 0000000..f30250a
--- /dev/null
+++ b/docs/source/webdriver/selenium.webdriver.common.utils.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.common.utils
+===============================
+
+.. automodule:: selenium.webdriver.common.utils
diff --git a/docs/source/webdriver_android/selenium.webdriver.android.webdriver.rst b/docs/source/webdriver_android/selenium.webdriver.android.webdriver.rst
new file mode 100644
index 0000000..a7693d9
--- /dev/null
+++ b/docs/source/webdriver_android/selenium.webdriver.android.webdriver.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.android.webdriver
+====================================
+
+.. automodule:: selenium.webdriver.android.webdriver
diff --git a/docs/source/webdriver_chrome/selenium.webdriver.chrome.options.rst b/docs/source/webdriver_chrome/selenium.webdriver.chrome.options.rst
new file mode 100644
index 0000000..9a6e42a
--- /dev/null
+++ b/docs/source/webdriver_chrome/selenium.webdriver.chrome.options.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.chrome.options
+=================================
+
+.. automodule:: selenium.webdriver.chrome.options
diff --git a/docs/source/webdriver_chrome/selenium.webdriver.chrome.service.rst b/docs/source/webdriver_chrome/selenium.webdriver.chrome.service.rst
new file mode 100644
index 0000000..ffe8b20
--- /dev/null
+++ b/docs/source/webdriver_chrome/selenium.webdriver.chrome.service.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.chrome.service
+=================================
+
+.. automodule:: selenium.webdriver.chrome.service
diff --git a/docs/source/webdriver_chrome/selenium.webdriver.chrome.webdriver.rst b/docs/source/webdriver_chrome/selenium.webdriver.chrome.webdriver.rst
new file mode 100644
index 0000000..7f54253
--- /dev/null
+++ b/docs/source/webdriver_chrome/selenium.webdriver.chrome.webdriver.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.chrome.webdriver
+===================================
+
+.. automodule:: selenium.webdriver.chrome.webdriver
diff --git a/docs/source/webdriver_firefox/selenium.webdriver.firefox.extension_connection.rst b/docs/source/webdriver_firefox/selenium.webdriver.firefox.extension_connection.rst
new file mode 100644
index 0000000..413bada
--- /dev/null
+++ b/docs/source/webdriver_firefox/selenium.webdriver.firefox.extension_connection.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.firefox.extension_connection
+===============================================
+
+.. automodule:: selenium.webdriver.firefox.extension_connection
diff --git a/docs/source/webdriver_firefox/selenium.webdriver.firefox.firefox_binary.rst b/docs/source/webdriver_firefox/selenium.webdriver.firefox.firefox_binary.rst
new file mode 100644
index 0000000..e0b04b1
--- /dev/null
+++ b/docs/source/webdriver_firefox/selenium.webdriver.firefox.firefox_binary.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.firefox.firefox_binary
+=========================================
+
+.. automodule:: selenium.webdriver.firefox.firefox_binary
diff --git a/docs/source/webdriver_firefox/selenium.webdriver.firefox.firefox_profile.rst b/docs/source/webdriver_firefox/selenium.webdriver.firefox.firefox_profile.rst
new file mode 100644
index 0000000..78ba949
--- /dev/null
+++ b/docs/source/webdriver_firefox/selenium.webdriver.firefox.firefox_profile.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.firefox.firefox_profile
+==========================================
+
+.. automodule:: selenium.webdriver.firefox.firefox_profile
diff --git a/docs/source/webdriver_firefox/selenium.webdriver.firefox.options.rst b/docs/source/webdriver_firefox/selenium.webdriver.firefox.options.rst
new file mode 100644
index 0000000..a64b990
--- /dev/null
+++ b/docs/source/webdriver_firefox/selenium.webdriver.firefox.options.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.firefox.options
+==================================
+
+.. automodule:: selenium.webdriver.firefox.options
diff --git a/docs/source/webdriver_firefox/selenium.webdriver.firefox.webdriver.rst b/docs/source/webdriver_firefox/selenium.webdriver.firefox.webdriver.rst
new file mode 100644
index 0000000..e9bfe53
--- /dev/null
+++ b/docs/source/webdriver_firefox/selenium.webdriver.firefox.webdriver.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.firefox.webdriver
+====================================
+
+.. automodule:: selenium.webdriver.firefox.webdriver
diff --git a/docs/source/webdriver_ie/selenium.webdriver.ie.webdriver.rst b/docs/source/webdriver_ie/selenium.webdriver.ie.webdriver.rst
new file mode 100644
index 0000000..3623813
--- /dev/null
+++ b/docs/source/webdriver_ie/selenium.webdriver.ie.webdriver.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.ie.webdriver
+===============================
+
+.. automodule:: selenium.webdriver.ie.webdriver
diff --git a/docs/source/webdriver_opera/selenium.webdriver.opera.webdriver.rst b/docs/source/webdriver_opera/selenium.webdriver.opera.webdriver.rst
new file mode 100644
index 0000000..ddabbc3
--- /dev/null
+++ b/docs/source/webdriver_opera/selenium.webdriver.opera.webdriver.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.opera.webdriver
+==================================
+
+.. automodule:: selenium.webdriver.opera.webdriver
diff --git a/docs/source/webdriver_phantomjs/selenium.webdriver.phantomjs.service.rst b/docs/source/webdriver_phantomjs/selenium.webdriver.phantomjs.service.rst
new file mode 100644
index 0000000..8d6e5ff
--- /dev/null
+++ b/docs/source/webdriver_phantomjs/selenium.webdriver.phantomjs.service.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.phantomjs.service
+====================================
+
+.. automodule:: selenium.webdriver.phantomjs.service
diff --git a/docs/source/webdriver_phantomjs/selenium.webdriver.phantomjs.webdriver.rst b/docs/source/webdriver_phantomjs/selenium.webdriver.phantomjs.webdriver.rst
new file mode 100644
index 0000000..5b3ab48
--- /dev/null
+++ b/docs/source/webdriver_phantomjs/selenium.webdriver.phantomjs.webdriver.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.phantomjs.webdriver
+======================================
+
+.. automodule:: selenium.webdriver.phantomjs.webdriver
diff --git a/docs/source/webdriver_remote/selenium.webdriver.remote.command.rst b/docs/source/webdriver_remote/selenium.webdriver.remote.command.rst
new file mode 100644
index 0000000..ff977b7
--- /dev/null
+++ b/docs/source/webdriver_remote/selenium.webdriver.remote.command.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.remote.command
+=================================
+
+.. automodule:: selenium.webdriver.remote.command
diff --git a/docs/source/webdriver_remote/selenium.webdriver.remote.errorhandler.rst b/docs/source/webdriver_remote/selenium.webdriver.remote.errorhandler.rst
new file mode 100644
index 0000000..5002887
--- /dev/null
+++ b/docs/source/webdriver_remote/selenium.webdriver.remote.errorhandler.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.remote.errorhandler
+======================================
+
+.. automodule:: selenium.webdriver.remote.errorhandler
diff --git a/docs/source/webdriver_remote/selenium.webdriver.remote.mobile.rst b/docs/source/webdriver_remote/selenium.webdriver.remote.mobile.rst
new file mode 100644
index 0000000..dc6ab4a
--- /dev/null
+++ b/docs/source/webdriver_remote/selenium.webdriver.remote.mobile.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.remote.mobile
+================================
+
+.. automodule:: selenium.webdriver.remote.mobile
diff --git a/docs/source/webdriver_remote/selenium.webdriver.remote.remote_connection.rst b/docs/source/webdriver_remote/selenium.webdriver.remote.remote_connection.rst
new file mode 100644
index 0000000..88d1389
--- /dev/null
+++ b/docs/source/webdriver_remote/selenium.webdriver.remote.remote_connection.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.remote.remote_connection
+===========================================
+
+.. automodule:: selenium.webdriver.remote.remote_connection
diff --git a/docs/source/webdriver_remote/selenium.webdriver.remote.utils.rst b/docs/source/webdriver_remote/selenium.webdriver.remote.utils.rst
new file mode 100644
index 0000000..e035f43
--- /dev/null
+++ b/docs/source/webdriver_remote/selenium.webdriver.remote.utils.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.remote.utils
+===============================
+
+.. automodule:: selenium.webdriver.remote.utils
diff --git a/docs/source/webdriver_remote/selenium.webdriver.remote.webdriver.rst b/docs/source/webdriver_remote/selenium.webdriver.remote.webdriver.rst
new file mode 100644
index 0000000..b390c19
--- /dev/null
+++ b/docs/source/webdriver_remote/selenium.webdriver.remote.webdriver.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.remote.webdriver
+===================================
+
+.. automodule:: selenium.webdriver.remote.webdriver
diff --git a/docs/source/webdriver_remote/selenium.webdriver.remote.webelement.rst b/docs/source/webdriver_remote/selenium.webdriver.remote.webelement.rst
new file mode 100644
index 0000000..7b6ab4d
--- /dev/null
+++ b/docs/source/webdriver_remote/selenium.webdriver.remote.webelement.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.remote.webelement
+====================================
+
+.. automodule:: selenium.webdriver.remote.webelement
diff --git a/docs/source/webdriver_safari/selenium.webdriver.safari.service.rst b/docs/source/webdriver_safari/selenium.webdriver.safari.service.rst
new file mode 100644
index 0000000..de44909
--- /dev/null
+++ b/docs/source/webdriver_safari/selenium.webdriver.safari.service.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.safari.service
+=================================
+
+.. automodule:: selenium.webdriver.safari.service
diff --git a/docs/source/webdriver_safari/selenium.webdriver.safari.webdriver.rst b/docs/source/webdriver_safari/selenium.webdriver.safari.webdriver.rst
new file mode 100644
index 0000000..f3b649e
--- /dev/null
+++ b/docs/source/webdriver_safari/selenium.webdriver.safari.webdriver.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.safari.webdriver
+===================================
+
+.. automodule:: selenium.webdriver.safari.webdriver
diff --git a/docs/source/webdriver_support/selenium.webdriver.support.abstract_event_listener.rst b/docs/source/webdriver_support/selenium.webdriver.support.abstract_event_listener.rst
new file mode 100644
index 0000000..53828ad
--- /dev/null
+++ b/docs/source/webdriver_support/selenium.webdriver.support.abstract_event_listener.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.support.abstract_event_listener
+==================================================
+
+.. automodule:: selenium.webdriver.support.abstract_event_listener
diff --git a/docs/source/webdriver_support/selenium.webdriver.support.color.rst b/docs/source/webdriver_support/selenium.webdriver.support.color.rst
new file mode 100644
index 0000000..44aa61c
--- /dev/null
+++ b/docs/source/webdriver_support/selenium.webdriver.support.color.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.support.color
+================================
+
+.. automodule:: selenium.webdriver.support.color
diff --git a/docs/source/webdriver_support/selenium.webdriver.support.event_firing_webdriver.rst b/docs/source/webdriver_support/selenium.webdriver.support.event_firing_webdriver.rst
new file mode 100644
index 0000000..abbeacd
--- /dev/null
+++ b/docs/source/webdriver_support/selenium.webdriver.support.event_firing_webdriver.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.support.event_firing_webdriver
+=================================================
+
+.. automodule:: selenium.webdriver.support.event_firing_webdriver
diff --git a/docs/source/webdriver_support/selenium.webdriver.support.expected_conditions.rst b/docs/source/webdriver_support/selenium.webdriver.support.expected_conditions.rst
new file mode 100644
index 0000000..46417a9
--- /dev/null
+++ b/docs/source/webdriver_support/selenium.webdriver.support.expected_conditions.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.support.expected_conditions
+==============================================
+
+.. automodule:: selenium.webdriver.support.expected_conditions
diff --git a/docs/source/webdriver_support/selenium.webdriver.support.select.rst b/docs/source/webdriver_support/selenium.webdriver.support.select.rst
new file mode 100644
index 0000000..02b0eb0
--- /dev/null
+++ b/docs/source/webdriver_support/selenium.webdriver.support.select.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.support.select
+=================================
+
+.. automodule:: selenium.webdriver.support.select
diff --git a/docs/source/webdriver_support/selenium.webdriver.support.wait.rst b/docs/source/webdriver_support/selenium.webdriver.support.wait.rst
new file mode 100644
index 0000000..f42089b
--- /dev/null
+++ b/docs/source/webdriver_support/selenium.webdriver.support.wait.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.support.wait
+===============================
+
+.. automodule:: selenium.webdriver.support.wait
diff --git a/docs/source/webdriver_webkitgtk/selenium.webdriver.webkitgtk.options.rst b/docs/source/webdriver_webkitgtk/selenium.webdriver.webkitgtk.options.rst
new file mode 100644
index 0000000..192eb79
--- /dev/null
+++ b/docs/source/webdriver_webkitgtk/selenium.webdriver.webkitgtk.options.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.webkitgtk.options
+====================================
+
+.. automodule:: selenium.webdriver.webkitgtk.options
diff --git a/docs/source/webdriver_webkitgtk/selenium.webdriver.webkitgtk.service.rst b/docs/source/webdriver_webkitgtk/selenium.webdriver.webkitgtk.service.rst
new file mode 100644
index 0000000..81497e0
--- /dev/null
+++ b/docs/source/webdriver_webkitgtk/selenium.webdriver.webkitgtk.service.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.webkitgtk.service
+====================================
+
+.. automodule:: selenium.webdriver.webkitgtk.service
diff --git a/docs/source/webdriver_webkitgtk/selenium.webdriver.webkitgtk.webdriver.rst b/docs/source/webdriver_webkitgtk/selenium.webdriver.webkitgtk.webdriver.rst
new file mode 100644
index 0000000..c819a4a
--- /dev/null
+++ b/docs/source/webdriver_webkitgtk/selenium.webdriver.webkitgtk.webdriver.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.webkitgtk.webdriver
+======================================
+
+.. automodule:: selenium.webdriver.webkitgtk.webdriver