Can I use the Selenium IDE to create cucumber / Capybara steps?

I installed the Selenium IDE (Firefox addon) and Capybara (gem). Now I lead Selenium from the steps of the cucumber / Capybara (@javascript) in the application for rails.

The question arises:

Is it possible to export Selenium IDE steps as cucumber / Capybara steps?

In Selenium IDE Options> Format I can only see Ruby (Test :: Unit) and RSpec, but with Capybara format it will be awesome .

Thanks.

+7
source share
1 answer

I do not consider it possible to export Selenium IDE tests in Cucumber scripts. Honestly, I’m not even sure that it would be advisable to build such an exporter. Selenium IDE tests are focused on the technical interactions of the test - click this button, enter in this field, wait for the page to load. Good cucumber tests focus on higher-level activities - for the health care system, your cucumber tests may have β€œWhen I admit a new patient named Joe Bloov,” and not β€œWhen I click a new patient link and I enter the first name Joe and I enter the name Blow. " You may be able to define some kind of socket to recognize some of these combinations of technical interactions in higher-level abstractions, but it will depend heavily on each system under test.

I have not used Capybara yet, so I'm not sure if export to this format is possible.

+3
source

All Articles