Skip to main content

A BDD-style Selenium-driven browser automation in Python

Project description

pomidor 0.0.2-Alpha

:tomato:

A BDD-style Selenium-driven browser automation on Python

(with Agile in mind :nerd_face: )

Fast and flexible approach to automating click() and send_keys() selenium actions straight from your Jira stories

Example:

Pomidor syntax

Here, you can see that action is prepended with a star (*click) and page object is marked with hashtag (#contact_us).

Note: To accomodate natural language, any variations of actions are allowed, as long as the root stays unchanged: Example: *Clicked or *tyPEd

Quick Start:

Install pomidor

Page factory

Create a Page Factory class with a dictionary that contains page objects. (Example shown below)

Page factory1

Write your first test_case.pomidor file (extension must be ".pomidor") and place it in dedicated folder (Ex.: pomidor_files):

Pomidor syntax

Create a runner file, import page factory dictionary, Pomidor class and exceptions (keep in mind, your page objects package name may differ from what's shown below)

Runner file

In the same runner file, specify url and page object instance, and pass them to Pomidor class instance. Then, run your first test case as shown below:

Runner file1

Run your first Automation test! :rocket:

Next in development:

  • asserts with *displayed and *selected

PyCharm plugin developers for ".pomidor" extension needed!

Clone it, fork it, bring any new ideas.

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

pomidor-0.0.2.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

pomidor-0.0.2-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

Details for the file pomidor-0.0.2.tar.gz.

File metadata

  • Download URL: pomidor-0.0.2.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for pomidor-0.0.2.tar.gz
Algorithm Hash digest
SHA256 27c64c49dd0726bca7a079ba502e1c6a85e8e2589fa93bbd9e6e13c8af305d6b
MD5 5c73f9e7e30db6374325fcf2d77144d3
BLAKE2b-256 f168e4abe46c12fd7dfc666af46b0342cf95c90531103b4ec407af0e15de4551

See more details on using hashes here.

File details

Details for the file pomidor-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: pomidor-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 16.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for pomidor-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9af6a2da0a74f4c325cfe8813cc10b62aab838ec38312cb2ea466276d0e9ffff
MD5 786b4b0082a626abb0bfeb42d251ac4d
BLAKE2b-256 8d59b4257ad8b379645f17599abb0efcf7ca1fc2dcaeecaf2d087820cea33b06

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page