Skip to main content
https://github.com/lemoncheesecake/lemoncheesecake-selenium/actions/workflows/tests.yml/badge.svg https://codecov.io/gh/lemoncheesecake/lemoncheesecake-selenium/branch/master/graph/badge.svg https://img.shields.io/pypi/v/lemoncheesecake-selenium.svg https://img.shields.io/pypi/pyversions/lemoncheesecake-selenium.svg

lemoncheesecake-selenium provides logging facilities to the Selenium Python library for tests written with the lemoncheesecake test framework.

Here is a simple example of a search on https://www.python.org:

 # suites/python_org_search.py

import lemoncheesecake.api as lcc
from lemoncheesecake.matching import *
from lemoncheesecake_selenium import Selector, save_screenshot, is_in_page
from selenium import webdriver
from selenium.webdriver.common.keys import Keys

@lcc.test()
def python_org_search():
    driver = webdriver.Firefox()
    driver.implicitly_wait(10)
    driver.get("http://www.python.org")
    selector = Selector(driver)
    check_that("title", driver.title, contains_string("Python"))
    search_field = selector.by_name("q")
    search_field.clear()
    search_field.set_text("pycon")
    search_field.set_text(Keys.RETURN)
    selector.by_xpath("//h3[text()='Results']").check_element(is_in_page())
    save_screenshot(driver)
    driver.close()

We run the test:

$ lcc.py run
============================== python_org_search ==============================
 OK  1 # python_org_search.python_org_search

Statistics :
 * Duration: 10s
 * Tests: 1
 * Successes: 1 (100%)
 * Failures: 0

HTML report : file:///tmp/python_org_search/report/report.html

And here are the report details :

test result

Installation

Install through pip:

$ pip install lemoncheesecake-selenium

lemoncheesecake-selenium is compatible with Python 3.7-3.10 and Selenium 4.x.

You will also need to install a WebDriver to control your web browser.

Features

  • clicking, setting text, selecting element in a SELECT, etc..

  • checking DOM nodes

  • screenshots

Documentation

The documentation is available on https://lemoncheesecake-selenium.readthedocs.io.

Contact

Bug reports and improvement ideas are welcomed in tickets. A Google Groups forum is also available for discussions about lemoncheesecake: https://groups.google.com/forum/#!forum/lemoncheesecake.

Metadata

Release files for lemoncheesecake-selenium 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lemoncheesecake-selenium 0.1.0
File Size Uploaded Provenance
lemoncheesecake-selenium-0.1.0.tar.gz 8.5 kB Without provenance Details

Release files / lemoncheesecake-selenium-0.1.0.tar.gz

Download URL lemoncheesecake-selenium-0.1.0.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1d92c1c5ef82b667350776ed5a39f8c7894cd208c912135dc62500127323b73e
BLAKE2b-256 checksum
How to use checksums
3ce6025dbcee2688fc42c17d0f830aa07b01b7a2c0ba1e9cc3e4e1569e597c6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.4.2 requests/2.26.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

Security for lemoncheesecake-selenium 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page