Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

It's simple way to mock your back-end from webdriver UI tests

Project description

Bemo(back-end mock) - it’s simple way to mock your back-end from webdriver UI tests.


Install bemo using pip:

$ pip install bemo

…or install bemo running command below if you want to use Python 2.7:

$ pip install bemo[py2x]



from selenium import webdriver
from selene.conditions import text
from import set_driver, visit, s

import bemo

wd = webdriver.Firefox()


with bemo.Session(wd=wd) as session:
    handler = session.handle('InputValidator', body={
        'input01': {
            'Valid': 'false',
            'ErrorMessage': 'Error!',
            'Errors': {
                'GmailAddress': 'It work.',
            'ErrorData': [],
        'Locale': 'ru',

    s('#GmailAddress').set('John Snow')

    s('#errormsg_0_GmailAddress').should_have(text('It work.'))

        'method': 'POST',
        'url': 'InputValidator?resource=SignUp',


Just run tox to test package.


bemo is licensed under the MIT license. See the license file for details.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
bemo-0.0.2.tar.gz (6.9 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page