Module Capybara::Helpers
In: lib/capybara/helpers.rb

Methods

Public Class methods

Normalizes whitespace space by stripping leading and trailing whitespace and replacing sequences of whitespace characters with a single space.

@param [String] text Text to normalize @return [String] Normalized text

Escapes any characters that would have special meaning in a regexp if text is not a regexp

@param [String] text Text to escape @return [String] Escaped text

[Validate]