splinter-0.9.0
توضیحات
browser abstraction for web acceptance testing
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | splinter-0.9.0 |
| نام | splinter |
| نسخه کتابخانه | 0.9.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | CobraTeam |
| ایمیل نویسنده | andrewsmedina@gmail.com |
| آدرس صفحه اصلی | https://github.com/cobrateam/splinter |
| آدرس اینترنتی | https://pypi.org/project/splinter/ |
| مجوز | BSD |
++++++++
splinter
++++++++
Splinter is a Python framework that provides a simple and consistent interface for web application automation.
.. image:: https://img.shields.io/pypi/v/splinter.svg
:target: https://pypi.org/project/splinter
:alt: PyPI
.. image:: https://img.shields.io/pypi/pyversions/splinter.svg
:alt: PyPI - Python Version
:target: https://github.com/cobrateam/splinter
.. image:: https://img.shields.io/github/license/cobrateam/splinter.svg
:alt: GitHub
:target: https://github.com/cobrateam/splinter/blob/master/LICENSE
.. image:: https://github.com/cobrateam/splinter/actions/workflows/main.yml/badge.svg
:target: https://github.com/cobrateam/splinter/actions/workflows/main.yml
:alt: Build status
* `Documentation <https://splinter.readthedocs.io>`_
* `Changelog <https://splinter.readthedocs.io/en/latest/news.html>`_
Key features:
- Easy to learn: The API is designed to be intuitive and quick to pick up.
- Faster to code: Automate browser interactions quickly and reliably without fighting the tool.
- Powerful: Designed for real world use cases, it guards against common automation quirks.
- Flexible: Access to lower level tools is never hidden. Break out into raw Selenium at any time.
- Robust: Support is available for multiple automation drivers (Selenium, Django, Flask, ZopeTestBrowser).
Example
-------
.. code:: python
from splinter import Browser
browser = Browser('firefox')
browser.visit('http://google.com')
browser.find_by_name('q').fill('splinter - python acceptance testing for web applications')
browser.find_by_name('btnK').click()
if browser.is_text_present('splinter.readthedocs.io'):
print("Yes, the official website was found!")
else:
print("No, it wasn't found... We need to improve our SEO techniques")
browser.quit()
Getting Started
===============
* `Installation <https://splinter.readthedocs.io/en/latest/install/install.html>`_
* `Tutorial <https://splinter.readthedocs.io/en/latest/tutorial.html>`_
Pytest Plugins
==============
* `pytest-splinter <http://pytest-splinter.readthedocs.io>`_, Splinter plugin for the `py.test <http://docs.pytest.org>`_ runner.
Page Objects
============
Support for page objects is available through the following package:
* `Stere <https://stere.readthedocs.io/>`_
نیازمندی
| مقدار | نام |
|---|---|
| 3.0,>=1.26.1 | urllib3 |
| =2.0. | Django |
| =4.2. | lxml |
| - | cssselect |
| =2.3. | Flask |
| =4.2. | lxml |
| - | cssselect |
| 4.17.0,>=4.1. | selenium |
| =6. | zope.testbrowser |
| =4.2. | lxml |
| - | cssselect |
نحوه نصب
نصب پکیج whl splinter-0.9.0:
pip install splinter-0.9.0.whl
نصب پکیج tar.gz splinter-0.9.0:
pip install splinter-0.9.0.tar.gz