If - for whatever reason - you have to render stylesheets dynamically, the following snippet might be of help. It emulates what...

davidwalsh.name

David Walsh from Mozilla shows how to fire 'DOM changed' events from CSS. No need for JS to observe DOM...

Capybara uses www.example.com as the default hostname when making requests. If your application does something specific on certain hostnames and...

For two years we've been using SearchableTrait which gives models the ability to process Googlesque queries like this: Contact.search...

Selenium cannot reliably control a browser when its window is not in focus, or when you accidentally interact with the...

Xfce gives you a million options to configure your panels. Together with Xfce's sometimes arcane configuration UI, this can...

makandra dev
github.com

The gem author Jonas Nicklas highlights in a Google Groups post that the release is not backwards compatible to 1...

perlstalker.vuser.org

While you can set your own font in your terminal or other tools, it will not change the default "Monospace...

Generally, Selenium tests use the browser to interact with the page. If it's unavailable, a timeout error is...

If you're using the Capybara webdriver, steps sometimes fail because the browser hasn't finished loading the next page...

If you require your Rails models manually, pay attention to the path you use. Unless you have...

github.com

Takes a screenshot when you call it, or when a test fails.

Geordi now supports our solution for running Selenium tests without having Firefox or Chrome windows popping up all over your...

makandra dev

This describes how to migrate an existing cucumber test suite to Spreewald. Add the gem Include spreewald into your cucumber...

web.archive.org

TL;DR Avoid before(:context) (formerly before(:all)), use before(:example) (formerly before(:each)) instead. If you do use before...

simple_format ignores Rails' XSS protection. Even when called with an unsafe string, HTML characters will not be escaped or...

If you type a command in your bash that doesn't exist you get this: bash: foo: command not found...

The step definition below allows you to write: Then I should see an HTML redirect to "http://www.makandracards.com" in the...

makandra dev

If a customer calls and tells you that she cannot see some content of her website beware of the following...

If you have an html_safe string, you won't be able to call gsub with a block and match...

A print stylesheet is easy to create. Choose a font suited for paper, hide some elements, done. Unfortunately print stylesheets...

github.com

Internet Explorer until version 9 has some limitations when parsing CSS files Summarized, these are: Up to 31 CSS files...

By default, only application.js, application.css and all non-JS/CSS files are precompiled into public/assets. If you have asset manifests...

github.com

In Selenium features the server and client are running in separate processes. Therefore, when mocking time with a tool like...