Metadata-Version: 1.1
Name: PySelenium
Version: 1.0.2
Summary: A wrapper for Selenium to allow easy development of automated tests for the web
Home-page: https://github.com/felipefiali/PySelenium
Author: Felipe Fiali de Sá
Author-email: felipefiali@gmail.com
License: MIT License
Download-URL: https://github.com/felipefiali/PySelenium/archive/1.0.2.tar.gz
Description: 
        
        .. image:: https://travis-ci.org/felipefiali/PySelenium.svg?branch=master
           :target: https://travis-ci.org/felipefiali/PySelenium
           :alt: Travis CI Build Status
        
        
        .. image:: https://coveralls.io/repos/github/felipefiali/PySelenium/badge.svg
           :target: https://coveralls.io/github/felipefiali/PySelenium
           :alt: Coverage Status
        
        
        .. image:: https://img.shields.io/github/license/felipefiali/pyselenium.svg
           :target: ./LICENSE
           :alt: License
        
        
        PySelenium
        ==========
        
        A Python package that uses Selenium to enable for automating tests for web applications.
        
        Setup instructions
        ------------------
        
        
        * 
          Get Google Chrome's driver from https://sites.google.com/a/chromium.org/chromedriver/downloads
        
        * 
          Put the web driver executable in any folder and add that folder to ``$PATH``
        
        * 
          Run ``pip install pyselenium`` 
        
        Usage
        -----
        
        After successfully going through the setup instructions, you can start programming your tests like so:
        
        .. code-block:: python
        
           from pyselenium.test_metadata import Test
           from pyselenium.test_steps import *
           from pyselenium.test_runner import *
        
           test = Test('My test')
           test.add_step(Navigate('http://www.google.com'))
           test.add_step(TypeText(css_path='#lst-ib', hint='Google search bar', text='Automating a Google search'))
           test.add_step(SendEnter())
           test_runner = TestRunner(test)
           test_result = test_runner.run_test()
        
           print(test_result)
        
        Sample test
        -----------
        
        You can find a sample test in `pyselenium/sample_test.py <https://github.com/felipefiali/PySelenium/blob/master/pyselenium/sample_test.py>`_
        
        List of available test steps
        ----------------------------
        
        These are the test steps currently available to be used:
        
        Navigate
        ^^^^^^^^
        
        Navigates to a specified URL.
        
        Click
        ^^^^^
        
        Clicks on a given element on the web page. It may be any HTML element. Fails if the element can not be found on the web page.
        
        AssertElementValue
        ^^^^^^^^^^^^^^^^^^
        
        Asserts that the element value (text) is equal to the specified one. Fails if the found value is different from the expected one.
        
        AssertElementAttributeValue
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
        
        Asserts that the value of a specific attribute of the HTML element is equal to the specified one. Fails if the found value is different from the expected one.
        
        ClickIfFound
        ^^^^^^^^^^^^
        
        Clicks on a given element on the web page. It may be any HTML element. Does not fail if the element can not be found on the web page. If the element is not found, does nothing.
        
        AssertElementNotPresent
        ^^^^^^^^^^^^^^^^^^^^^^^
        
        Asserts that an element is not present on the web page. Fails if the element is found.
        
        TypeText
        ^^^^^^^^
        
        Simulates the user typing text on a given element on the web page. Fails if the element is not found.
        
        SelectDropDownItemByText
        ^^^^^^^^^^^^^^^^^^^^^^^^
        
        Selects an option on a dropdown element by comparing its text to a given value. Fails if the element is not found.
        
        SetCheckbox
        ^^^^^^^^^^^
        
        Sets a checkbox to true or false. Fails if the checkbox is not found.
        
        SwitchFrame
        ^^^^^^^^^^^
        
        Switches the context to a given iFrame on the page. Fails if the iFrame is not found. After running this step, one should call the ``SwitchToDefaultContent`` right after running the needed steps on the selected iFrame to ensure that the context is switched back to the default content of the page.
        
        SwitchToDefaultContent
        ^^^^^^^^^^^^^^^^^^^^^^
        
        Switches the context to the default content of the web page. Should always be called after switching the context to another iFrame and running the needed steps on that iFrame.
        
        SendEnter
        ^^^^^^^^^
        
        Sends an ENTER key to the webpage. It's the same as if the user simply hit the return button on the keyboard. This step does not have any context information as to there the focus is on the page, so should only be used when necessary.
        
Keywords: testing,test-automation,selenium,web-automation
Platform: Windows
Platform: Linux
Platform: MacOS
Classifier: License :: OSI Approved :: MIT License
Classifier: Intended Audience :: Developers
Classifier: Development Status :: 5 - Production/Stable
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.6
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: Unix
Classifier: Topic :: Software Development
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Software Development :: Quality Assurance
Classifier: Topic :: Software Development :: Testing
Classifier: Topic :: Utilities
