Configure Capybara to suit your needs.
Capybara.configure do |config|
config.run_server = false
config.app_host = 'http://www.google.com'
end
Configurable options
false
) - When Nokogiri >= 1.12.0 or nokogumbo
is installed, whether HTML5 parsing will be used for HTML strings.false
) - Whether the Rack server's port should automatically be inserted into every visited URL unless another port is explicitly specified.nil
) - The default host to use when giving a relative URL to visit, must be a valid URL e.g. http://www.example.com
.nil
) - Where dynamic assets are hosted - will be prepended to relative asset locations if present.false
) - Whether Element#choose, Element#check, Element#uncheck will attempt to click the associated <label>
element if the checkbox/radio button are non-visible.true
) - Whether to automatically reload elements as Capybara is waiting.2
) - The maximum number of seconds to wait for asynchronous processes to finish.false
) - Whether text predicates and matchers use normalize whitespace behavior.0.01
) - The number of seconds to delay the next check in asynchronous processes.:css
, :xpath
= :css
) - Methods which take a selector use the given type by default. See also Selector.{}
) - The default options passed to Element#set.false
) - Whether fields, links, and buttons will match against aria-label
attribute.false
) - Selectors will check for relevant aria role (currently only button
).false
) - Whether locators are matched exactly or with substrings. Only affects selector conditions written using the XPath#is
method.false
) - Whether the text matchers and :text
filter match exactly or on substrings.true
) - Whether to ignore hidden elements on the page.:one
, :first
, :prefer_exact
, :smart
= :smart
) - The matching strategy to find nodes.true
) - Whether Capybara's predicate matchers use waiting behavior by default.true
) - Should errors raised in the server be raised in the tests?true
) - Whether to reuse the server thread between multiple sessions using the same app object.true
) - Whether to start a Rack server for the given Rack app.Dir.pwd
) - Where to put pages saved through save_page, save_screenshot, save_and_open_page, or save_and_open_screenshot.:default
(which uses puma)) - The name of the registered server to use when running the app under test.[Exception]
) - Error classes that should be raised in the tests if they are raised in the server and raise_server_errors is true
.nil
= nil
) - Optional attribute to match locator against with built-in selectors along with id.false
) - Whether sessions can be configured individually.When using capybara/dsl
, the following options are also available:
:rack_test
) - The name of the driver to use by default.:selenium
) - The name of a driver to use for JavaScript enabled tests.RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4