{ "info": { "author": "", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Testing" ], "description": "======================\nSelenium Client Driver\n======================\n\nIntroduction\n============\n\nPython language bindings for Selenium WebDriver.\n\nThe `selenium` package is used to automate web browser interaction from Python.\n\n+-----------+--------------------------------------------------------------------------------------+\n| **Home**: | http://www.seleniumhq.org |\n+-----------+--------------------------------------------------------------------------------------+\n| **Docs**: | `selenium package API `_ |\n+-----------+--------------------------------------------------------------------------------------+\n| **Dev**: | https://github.com/SeleniumHQ/Selenium |\n+-----------+--------------------------------------------------------------------------------------+\n| **PyPI**: | https://pypi.org/project/selenium/ |\n+-----------+--------------------------------------------------------------------------------------+\n| **IRC**: | **#selenium** channel on freenode |\n+-----------+--------------------------------------------------------------------------------------+\n\nSeveral browsers/drivers are supported (Firefox, Chrome, Internet Explorer), as well as the Remote protocol.\n\nSupported Python Versions\n=========================\n\n* Python 2.7, 3.4+\n\nInstalling\n==========\n\nIf you have `pip `_ on your system, you can simply install or upgrade the Python bindings::\n\n pip install -U selenium\n\nAlternately, you can download the source distribution from `PyPI `_ (e.g. selenium-3.141.0.tar.gz), unarchive it, and run::\n\n python setup.py install\n\nNote: You may want to consider using `virtualenv `_ to create isolated Python environments.\n\nDrivers\n=======\n\nSelenium requires a driver to interface with the chosen browser. Firefox,\nfor example, requires `geckodriver `_, 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`.\n\nFailure to observe this step will give you an error `selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH.`\n\nOther supported browsers will have their own drivers available. Links to some of the more popular browser drivers follow.\n\n+--------------+-----------------------------------------------------------------------+\n| **Chrome**: | https://sites.google.com/a/chromium.org/chromedriver/downloads |\n+--------------+-----------------------------------------------------------------------+\n| **Edge**: | https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/ |\n+--------------+-----------------------------------------------------------------------+\n| **Firefox**: | https://github.com/mozilla/geckodriver/releases |\n+--------------+-----------------------------------------------------------------------+\n| **Safari**: | https://webkit.org/blog/6900/webdriver-support-in-safari-10/ |\n+--------------+-----------------------------------------------------------------------+\n\nExample 0:\n==========\n\n* open a new Firefox browser\n* load the page at the given URL\n\n.. code-block:: python\n\n from selenium import webdriver\n\n browser = webdriver.Firefox()\n browser.get('http://seleniumhq.org/')\n\nExample 1:\n==========\n\n* open a new Firefox browser\n* load the Yahoo homepage\n* search for \"seleniumhq\"\n* close the browser\n\n.. code-block:: python\n\n from selenium import webdriver\n from selenium.webdriver.common.keys import Keys\n\n browser = webdriver.Firefox()\n\n browser.get('http://www.yahoo.com')\n assert 'Yahoo' in browser.title\n\n elem = browser.find_element_by_name('p') # Find the search box\n elem.send_keys('seleniumhq' + Keys.RETURN)\n\n browser.quit()\n\nExample 2:\n==========\n\nSelenium WebDriver is often used as a basis for testing web applications. Here is a simple example using Python's standard `unittest `_ library:\n\n.. code-block:: python\n\n import unittest\n from selenium import webdriver\n\n class GoogleTestCase(unittest.TestCase):\n\n def setUp(self):\n self.browser = webdriver.Firefox()\n self.addCleanup(self.browser.quit)\n\n def testPageTitle(self):\n self.browser.get('http://www.google.com')\n self.assertIn('Google', self.browser.title)\n\n if __name__ == '__main__':\n unittest.main(verbosity=2)\n\nSelenium Server (optional)\n==========================\n\nFor normal WebDriver scripts (non-Remote), the Java server is not needed.\n\nHowever, 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).\n\nDownload the server separately, from: http://selenium-release.storage.googleapis.com/3.141/selenium-server-standalone-3.141.0.jar\n\nRun the server from the command line::\n\n java -jar selenium-server-standalone-3.141.0.jar\n\nThen run your Python client scripts.\n\nUse The Source Luke!\n====================\n\nView source code online:\n\n+-----------+-------------------------------------------------------+\n| official: | https://github.com/SeleniumHQ/selenium/tree/master/py |\n+-----------+-------------------------------------------------------+\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/isjfoisjdfoijsdo/isjdfosjdfo/", "keywords": "", "license": "Apache 2.0", "maintainer": "", "maintainer_email": "", "name": "simpleelistener", "package_url": "https://pypi.org/project/simpleelistener/", "platform": "", "project_url": "https://pypi.org/project/simpleelistener/", "project_urls": { "Homepage": "https://github.com/isjfoisjdfoijsdo/isjdfosjdfo/" }, "release_url": "https://pypi.org/project/simpleelistener/3.140.0/", "requires_dist": [ "urllib3" ], "requires_python": "", "summary": "sdofpksodpfksdpf", "version": "3.140.0" }, "last_serial": 4772434, "releases": { "3.140.0": [ { "comment_text": "", "digests": { "md5": "bde85b40ccea42b3b6433008b17a6e86", "sha256": "5166ce3a68bc6da4b2bef79a6ebbfc625dc9d353abaa3639860987fde4aa846a" }, "downloads": -1, "filename": "simpleelistener-3.140.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "bde85b40ccea42b3b6433008b17a6e86", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 903300, "upload_time": "2019-02-02T15:34:44", "url": "https://files.pythonhosted.org/packages/55/d4/f8127031145e2231d5d804d254d576103389d97af4c24aa5376b4a213ae1/simpleelistener-3.140.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1e8c961c0a4804523e6f6df394ba69bf", "sha256": "a5c46efe9038316f45e29224ebaf33475b5912827713062020f4ea37e6ddebb9" }, "downloads": -1, "filename": "simpleelistener-3.140.0.tar.gz", "has_sig": false, "md5_digest": "1e8c961c0a4804523e6f6df394ba69bf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 856638, "upload_time": "2019-02-02T15:34:47", "url": "https://files.pythonhosted.org/packages/bb/d4/773bff8fd2ce5af4f13d772ef5d32dbf8c290f50b35e50b8105d2a1d02df/simpleelistener-3.140.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "bde85b40ccea42b3b6433008b17a6e86", "sha256": "5166ce3a68bc6da4b2bef79a6ebbfc625dc9d353abaa3639860987fde4aa846a" }, "downloads": -1, "filename": "simpleelistener-3.140.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "bde85b40ccea42b3b6433008b17a6e86", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 903300, "upload_time": "2019-02-02T15:34:44", "url": "https://files.pythonhosted.org/packages/55/d4/f8127031145e2231d5d804d254d576103389d97af4c24aa5376b4a213ae1/simpleelistener-3.140.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1e8c961c0a4804523e6f6df394ba69bf", "sha256": "a5c46efe9038316f45e29224ebaf33475b5912827713062020f4ea37e6ddebb9" }, "downloads": -1, "filename": "simpleelistener-3.140.0.tar.gz", "has_sig": false, "md5_digest": "1e8c961c0a4804523e6f6df394ba69bf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 856638, "upload_time": "2019-02-02T15:34:47", "url": "https://files.pythonhosted.org/packages/bb/d4/773bff8fd2ce5af4f13d772ef5d32dbf8c290f50b35e50b8105d2a1d02df/simpleelistener-3.140.0.tar.gz" } ] }