Metadata-Version: 1.1
Name: selenium-requests
Version: 1.0.8
Summary: Extends Selenium WebDriver classes to include the request function from the Requests library, while doing all the needed cookie and request headers handling.
Home-page: https://github.com/cryzed/Selenium-Requests
Author: Chris Braun
Author-email: cryzed@googlemail.com
License: MIT
Description: Selenium Requests

        =================

        

        Extends Selenium WebDriver classes to include the

        `request <http://docs.python-requests.org/en/latest/api/#requests.request>`__

        function from the `Requests <http://python-requests.org/>`__ library,

        while doing all the needed cookie and request headers handling.

        

        Details

        -------

        

        Before the actual request is made, a local HTTP server is started that

        serves a single request made by the webdriver instance to get the

        "standard" HTTP request headers sent by this webdriver; these are cached

        (only happens once during its lifetime) and later used in conjunction

        with the Requests library to make the requests look identical to those

        that would have been sent by the webdriver. Cookies held by the

        webdriver instance are added to the request headers and those returned

        in a response automatically set for the webdriver instance.

        

        Installation

        ------------

        

        ``pip install selenium-requests``

        

        Usage

        -----

        

        .. code:: python

        

            # Import any WebDriver class that you would usually import from

            # selenium.webdriver from the seleniumrequests module

            from seleniumrequests import Firefox

        

        

            webdriver = Firefox()

            response = webdriver.request('GET', 'http://google.com/')

            print(response)

        
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3
