When ending a Selenium test Capybara resets the browser state by closing the tab, clearing cookies, localStorage, etc.
If you want to rotate text, you can use CSS transforms in somewhat modern browsers to rotate the container element...
Here's a pretty useful steps that hasn't made it into Spreewald yet. It is best used with the...
Good article about window functions. Also note how they use a postgres feature called common table expressions.
When you are using the #selector_for helper in Cucumber steps, as e.g. Spreewald does, the following snippet will save...
I got the following error after updating the selenium-webdriver gem: wrong number of arguments (0 for 1) (ArgumentError) /home/pointoo-dev/.rvm/gems/ruby-1.8.7-p374/gems/selenium-webdriver-2.35.1/lib/selenium/webdriver/common/platform.rb...
When running migrations with rake db:migrate, there's the STEP and VERSION parameters that you can pass to nearly...
I've pushed an update to Cucumber factory that simplifies working with FactoryGirl factories. Say you define a factory with...
Geordi 1.0 features a command line application geordi, that holds most of Geordi's previous commands. New features
Add gem 'database_cleaner' to your Gemfile. Then: Cucumber & Rails 3+ # features/support/database_cleaner.rb DatabaseCleaner.clean_with(:deletion) # clean once, now DatabaseCleaner.strategy = :transaction...
Jonas Nicklas, the author of Carrierwave and Capybara, has released Refile, a gem for handling file uploads in Rails. It...
Then the "sorted" select should be sorted But the "unsorted" select should not be sorted
When navigating back to a page that was received from a POST request, undesired side effects may happen. Therefore, modern...
When running Selenium features with parallel_tests, some browser-server interaction might take longer than usual and the impatient Capybara...
Run bundle update cucumber capybara cucumber-rails to update to the newest versions. Backup your features/support/path.rb to be able to...
JavaScript objects can have getter and setter functions that are called when a property is read from or written to...
This is a problem when using Selenium with Firefox. We recommend using ChromeDriver for your Selenium tests. This setup allows...
Capybara-screenshot can automatically save screenshots and the HTML for failed Capybara tests in Cucumber, RSpec or Minitest. Requires Capybara...
capybara_element['attribute_name'] allows accessing an element's attributes in Capybara. A few examples: find('#my_element')['class']
Cucumber will clean up files you've uploaded in your Cucumber features automatically with the attached code. Put the file...
This step will pass if the specified select is sorted. Then /^the "(.*?)" select should be sorted$/ do |label, negate|
The Rails asset pipeline improves delivery of application assets (javascripts, stylesheets, images, fonts). Here are some basic facts about its...
If you get one of this errors: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: ( ): found...
One of the many useful features of TextMate is autocompletion of words. If I were in TextMate right now, I...