Skip to main content

A lightweight interface to python-selenium.

Project description

Sulfur is a simplified web driver interface for python-selenium. Sulfur adds a more pleasant and less java-esque interface and also uses the power of the BeautifulSoup library to make things easier.

Sulfur’s main goal is to facilitate writing tests for Web applications. It has a builtin pytest plugin that define a few useful fixtures, but it can also be used with other testing libraries.

You can use Sulfur anywhere that Selenium would be used. Besides the obvious use case in testing, think of automation, data-mining, presentations, etc.

Basic Usage

Let us start a new webdriver (sulfur uses Chrome by default):

>>> from sulfur import Driver
>>> driver = Driver('chrome', url='http://www.python.org')

The driver object is used to control the web browser. There are several actions that can be

>>> driver.close()

Selectors and queries

Page objects

Beautiful soup

URL checkers

What’s up with this name?

Sulfur is the element that sits just on top of Selenium in the periodic table. Elements within the same column share many chemical and electronic properties, but since Sulfur has an atomic number of 16 (against 34 for Selenium), it is considerably lighter ;)

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

sulfur-0.1.3.tar.gz (19.3 kB view hashes)

Uploaded Source

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