In order to use different encodings than ASCII for HTTP headers use the following syntax: Header-Key: Header-Value; Parameter...
When you double-tap a string of text on an iPhone or iPad a complicated context menu for copying and...
The step definition below allows you to write: Then I should see a link labeled "Foo" But I should not...
Attached you can find an example ~/.ssh/config file which makes working with SSH more pleasant. It contains several tweaks:
When you edit text in Balsamiq Mockups, you can define inline styles like this: | Bold | Some *bold* text | | Italics | Some...
If you need to strip carriage return characters from a text file, you can use Vim: vim file.txt
Although regular expression syntax is 99% interchangeable between languages, keep this in mind: By default, the dot character (".") does not...
Specify these gem versions in your Gemfile: gem 'cucumber', '~> 1.3.0' gem 'cucumber-rails', '= 0.3.2' # max version for Rails 2
The shell variable PS1 holds your bash prompt. You might want to change it to serve your needs best. Here...
Around the time in my life when I stopped ordering drinks made with more than one ingredient, I was woken...
If you have content inside a page that is hidden by CSS, the following will work with Selenium, but not...
This note describes a Cucumber step definition that lets you say: Then "Mow lawn" should be an option for "Activity...
Find-as-you-type boxes are usually built by observing changes in a text field, and querying the server via...
When you need to see the content of a page (i.e. not all the HTML but the relevant text body...
Using this step definition you can check if any form field (text field, checkbox, etc) or button is disabled:
This step tests whether a given select option comes preselected in the HTML. There is another step to test that...
Sometimes the order in which strings appear on a page matters to you. Spreewald gives you steps like these:
Capybara's has_css? matcher has a couple of options you might find useful. Check that a selector appears a...
Because they are vector, it would make sense if we could do things that other vector programs (e.g. Adobe Illustrator...
This will not work (it always passes): Then the "Title" field should contain "" The value is turned into a regular...
The CSS Emoticons plugin is a simple jQuery plugin (and stylesheet) that allows you to turn any text emoticons on...
You can use the whatlanguage gem to detect the language of a Ruby string. Note that it also has not...
Cached fonts WILL caused an unstyled flash of text.
This raises "Could not find first Keyword": describe Keyword do it { should validate_uniqueness_of(:text) } end Do this instead...