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
- Python
- wxPython
- Selenium WebDriver
- pytest
- pytest-html
- pytest-dotenv
- loguru
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.
Done via command line script easelenium_cli
pip install easelenium
-
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
MIT License easelenium_license.txt