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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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