Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7573095
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T16:05:42+00:00 2026-05-30T16:05:42+00:00

Ruby has this great abstraction layer on top of Selenium called Capybara, which you

  • 0

Ruby has this great abstraction layer on top of Selenium called Capybara, which you can use do functional/acceptance/integration testing. It also has another library called Cucumber which takes this a step further and lets you actually write tests in English.

Both libraries are built on top of Selenium, and can be used to test against any major browser, but because of their abstraction layers it’s super easy to write tests using them (well, as easy as functional testing gets at least).

My question is: does Python have anything like that? I have found Pythonistas doing functional testing with various tools but …

A) Splinter: doesn’t use Selenium (and doesn’t have an IE driver)

-EDIT-
It appears Spliter now does use Selenium (see answers below).

B) Alfajor: hasn’t been updated in over a year; looks dead

C) Selenium (raw): a lot of people seem to be using Selenium directly, but it seems like an abstraction layer could make it a lot easier to use

So, does anyone know of anything Capybara-like, or better yet Cucumber-like, for Python (it doesn’t have to actually use Selenium, but it needs to support all major browsers)?

* EDIT *

For those that aren’t familiar with Capybara, it basically just adds an API so that instead of the normal Selenium API you can do something like this:

When /I sign in/ do
  within("#session") do
    fill_in 'Login', :with => 'user@example.com'
    fill_in 'Password', :with => 'password'
  end
  click_link 'Sign in'
end

It’s used by Cucumber, which let’s you further abstract (almost to English):

Scenario Outline: Add two numbers
Given I have entered <input_1> into the calculator
And I have entered <input_2> into the calculator
When I press <button>
Then the result should be <output> on the screen

Examples:
| input_1 | input_2 | button | output |
| 20 | 30 | add | 50 |

I would LOVE a Python Cucumber equivalent, but even just a Capybara equivalent would be helpful.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T16:05:43+00:00Added an answer on May 30, 2026 at 4:05 pm

    You can test Python code using Cucumber – see the Cucumber wiki on github for more information.

    If you want a pure Python solution, check out Lettuce. I’ve never used it, but there is a fairly useful looking blog entry about it and splinter here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Has accept_nested_attributes_for already works with Rails 2.3.5 and Ruby 1.9.1???? I keep getting this
Ruby on Rails has a screencast presentation they use to promote their framework that
Ruby-doc has this description: The ObjectSpace module contains a number of routines that interact
I think this is a great Ruby one-liner: someArray.sort_by {rand} It's concise, it's readable,
Array#uniq has this behaviour in Ruby 1.9 c = [ a:def, a:xyz, b:abc, b:xyz,
Ruby has two different exceptions mechanisms: Throw/Catch and Raise/Rescue. Why do we have two?
Ruby has a wealth of conditional constructs, including if / unless , while /
Ruby has been around for a while now so I was wondering if there
I recently installed jruby on a machine that also has ruby installed on it.
Ruby on Rails has magic timestamping fields that are automatically updated when a record

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.