PKG-INFO 2.63 KB
Newer Older
1
Metadata-Version: 1.0
2
Name: selenium
3
Version: 2.2.0
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Summary: Python bindings for Selenium
Home-page: http://code.google.com/p/selenium/
Author: UNKNOWN
Author-email: UNKNOWN
License: UNKNOWN
Description: ============
        Introduction
        ============
        :Author: David Burns
        
        Selenium Python Client Driver is a Python language binding for Selenium Remote
        Control (version 1.0 and 2.0).
        
        Currently the remote protocol, Firefox and Chrome for Selenium 2.0 are
        supported, as well as the Selenium 1.0 bindings. As work will progresses we'll
        add more "native" drivers.
        
        See here_ for more information.
        
        .. _here: http://code.google.com/p/selenium/
        
        Installing
        ==========
        
        Python Client
        -------------
        ::
        
32
        pip install -U selenium
33 34 35 36
        
        Java Server
        -----------
        
37
        Download the server from http://selenium.googlecode.com/files/selenium-server-standalone-2.0rc2.jar
38 39
        ::
        
40
        java -jar selenium-server-standalone-2.0rc2.jar
41 42 43 44 45
        
        Example
        =======
        ::
        
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
        from selenium import webdriver
        from selenium.common.exceptions import NoSuchElementException
        from selenium.webdriver.common.keys import Keys
        import time
        
        browser = webdriver.Firefox() # Get local session of firefox
        browser.get("http://www.yahoo.com") # Load page
        assert "Yahoo!" in browser.title
        elem = browser.find_element_by_name("p") # Find the query box
        elem.send_keys("seleniumhq" + Keys.RETURN)
        time.sleep(0.2) # Let the page load, will be added to the API
        try:
        browser.find_element_by_xpath("//a[contains(@href,'http://seleniumhq.org')]")
        except NoSuchElementException:
        assert 0, "can't find seleniumhq"
        browser.close()
62 63 64
        
        Documentation
        =============
65
        Coming soon, in the meantime - `"Use the source Luke"`_
66
        
67
        ..  _"Use the source Luke": http://code.google.com/p/selenium/source/browse/trunk/py/selenium/webdriver/remote/webdriver.py
68 69 70 71 72 73 74 75 76 77 78
        
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: POSIX
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Topic :: Software Development :: Testing
Classifier: Topic :: Software Development :: Libraries
Classifier: Programming Language :: Python