easelenium - Selenium-based Test Automation Framework.
Project description
easelenium
Framework based on Selenium WebDriver. Contains wrapper around Selenium WebDriver functionaly and UI to facilitate in development.
Features:
- Supports Firefox, Chrome, IE, Opera and PhantomJS.
- Supports PageObject pattern
- Supports Continuous Integration
- Suits for novice users.
- Supports only Python 3.8+(for older python versions check 0.3 tag)
Framework can be used as standalone framework with UI and/or as a library. Supportive classes:
GUI easelenium_ui:
- Generator
- Editor
- Test runner
Dependencies
- Python
- wxPython
- Selenium WebDriver
- pytest
- pytest-html
- pytest-dotenv
- loguru
Simple usage
Most of Browser
functions support both WebElement
object and tuple/list which represents html element. This tuple/list object should contain selector/locator as first element and value as a second element. Example: input = (By.NAME, 'q')
Here is simple example:
>>> from easelenium.browser import Browser
>>> browser = Browser('gc') # create browser
>>> browser.get('https://www.duckduckgo.com') # go to page
>>> browser.type(by_name='q', text='selenium') # type 'selenium' into search field
>>> browser.click(by_id='search_button_homepage') # click search button
>>> browser.get_text(by_css='h2.result__title') # get first result title
'SeleniumHQ Browser Automation'
>>> browser.quit() # close browser
Check browser_test.py for more examples.
Continuous Integration
Done via command line script easelenium_cli
Installation
Using pip
pip install easelenium
Manual
-
Download latest code from GitHub
-
Extract it
-
Open terminal or command line console
-
Navigate to extracted folder
-
Install all required libraries
python -m pip install -r requirements.txt
-
Go to
easelenium
folder and install with command:python setup.py install
License
MIT License easelenium_license.txt
Tutorial
More information
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file easelenium-0.7.2.tar.gz
.
File metadata
- Download URL: easelenium-0.7.2.tar.gz
- Upload date:
- Size: 93.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06187d776dccfdfdc496db726cde6d971ed0aa317e218fa3f0d35d8e5ca32dae |
|
MD5 | 2a9452e800daf631a72bd8cfc18568e2 |
|
BLAKE2b-256 | 1a05e27d3e6aa2e80290847277a963ad26a414fb7ce34cf58b7af103a02e9b98 |
File details
Details for the file easelenium-0.7.2-py3-none-any.whl
.
File metadata
- Download URL: easelenium-0.7.2-py3-none-any.whl
- Upload date:
- Size: 55.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0d75e288681e5f17292e6bdbb755460901b4094955a9a9662c35774b3b2d3e0 |
|
MD5 | 4c156274bc28a87ea2e72c73491112dc |
|
BLAKE2b-256 | df62eab88a8b1656bbe28d0ef05c125de545785cac03b82493ac55da32b934f2 |