Thomas Walpole
cc5111119d
minor cleanup
2018-10-16 17:19:44 -07:00
Thomas Walpole
1054005906
Add empty line after guard claues
2018-09-24 09:43:46 -07:00
Thomas Walpole
5dabc1e212
cleanup timer usage
2018-09-05 15:51:00 -07:00
Thomas Walpole
e320f5d7fc
style updates
2018-07-16 15:04:52 -07:00
Thomas Walpole
c85d0a1e8b
Move elapsed time checking into own class
2018-06-06 10:51:25 -07:00
Thomas Walpole
a17e9c36fa
Add rubocop-spec - some disabled for now
2018-04-30 18:00:16 -07:00
Thomas Walpole
b0e82b0925
Deprecate Capybara::Helpers::normalize_whitespace
2018-03-12 10:23:32 -07:00
Thomas Walpole
0c43bfbd3c
Change #text to be closer to what a browser displays
2018-03-12 09:51:47 -07:00
Thomas Walpole
a0f913be7d
Capybara::Helpers keyword args
2018-02-27 18:22:14 -08:00
Thomas Walpole
dfaf958ea7
more code cleanup
2018-01-15 14:02:20 -08:00
Thomas Walpole
24eb7a0702
rubocop driven style cleanup
2018-01-09 16:01:47 -08:00
Thomas Walpole
e68051f6ac
Rubocop driven cleanup
2018-01-08 14:39:56 -08:00
Thomas Walpole
0270b7a4cf
Per-session config and thread specific current_driver/session_name
2017-04-27 13:37:04 -07:00
Thomas Walpole
e85cce5778
Support easier full text matching
2016-12-23 12:28:25 -08:00
Thomas Walpole
5033eca9fc
move helpers to BaseQuery
2016-08-31 12:04:22 -07:00
Thomas Walpole
114ec10d12
improve error message when case doesn't match
2016-07-21 11:34:26 -07:00
Thomas Walpole
07e7777425
frozen literal magic comment
2016-03-07 16:52:19 -08:00
Thomas Walpole
1abfda0ac1
frozen string literal compatbility changes
2016-03-01 13:53:19 -08:00
cafedomancer
7215d28a69
Fix indentation
2016-01-28 23:26:01 +09:00
Travis Grathwell
e4db955395
inject_asset_host should not raise if <head> is missing
...
Previously, if you had Capybara.asset_host defined and tried to
`save_page` on a document without a <head> tag (like plain text)
`inject_asset_host` would crash trying to string-replace a <base>
tag onto the nonexistant <head>.
Since there's probably no need for it to successfully inject a
<base> into such documents, now it will return the original content
when there is no <head> present.
2015-05-04 01:02:36 -07:00
Thomas Walpole
2b21da8b4c
use monotonic process clock if available to remove limation on freezing time
2015-04-14 14:41:01 -07:00
Andrey Botalov
46b1e95fb8
Cleanup save_* family of methods
...
* Better YARD documentation
* Make `path` argument of `save_screenshpt` `nil` by default
* Add `options` argument for `save_and_open_screenshot`
2014-08-24 14:48:20 +03:00
Thomas Walpole
6e0130ed52
fix typo
2014-06-27 16:08:04 -07:00
Thomas Walpole
02f3003601
Fix bug when asset_host and base tag are present
...
Fixes a bug when asset_host and base tag are present, cherry picked from PR #1295 by @abotalov
2014-06-27 16:05:52 -07:00
Jake Worth
4962b2e419
Fix some typos
2014-03-19 18:28:26 -05:00
tmertens
d1e8828d8b
Fix spec failures
2014-01-17 14:48:18 -06:00
tmertens
828bc2e812
Allow expectations on element count in Finders#all().
...
- all() will now wait for the number of elements returned to match
the expected :count, :minimum, :maximum, :between query options.
- Helpers#matches_count? returns true if none of the count query
options are specified.
- Helpers#matches_count? tests multiple conditions if more than one
is specified. If :count is specified, however, it ignores others.
- Matchers#assert_selector allows checking for 0 matches when
the query options include {:count => 0}
2014-01-17 13:00:45 -06:00
Ryunosuke SATO
30d5ccc58b
Fix method comments
2013-03-29 11:15:07 +09:00
Jonas Nicklas
415e2db70d
Refactor and document
2013-03-17 15:48:04 +01:00
Andrey Botalov
f3f8f9c104
add tests, fixes according to review comments
2013-03-05 00:35:11 +03:00
Andrey Botalov
3783237c5f
Add count options to has_text
2013-03-04 02:04:23 +03:00
Jonas Nicklas
1ba1110831
Make sure we don't accidentally modify the body
...
Since we don't know where it comes from in the driver. Related to #958
2013-02-20 01:41:21 +01:00
Jonas Nicklas
f0fa707f26
Pull base tag injection into a helper
2013-02-19 23:57:34 +01:00
Ben Cates
8852e4dc20
Replace ugly regex with POSIX class
...
`[[:space:]]` works like `\s` in regexes, except it is encoding aware.
2012-12-31 15:30:35 -05:00
Piotr Krawiec
26e452bc10
Add encoding header to the helpers definition file
...
Fixes "incompatible character encoding" error when running Capybara
on JRuby platforms.
2012-12-05 19:46:50 +01:00
Jo Liss
b2767a8413
Make whitespace normalization Unicode-aware. Fixes #767
...
Also move normalize_whitespace and to_regexp into Capybara::Helpers, and
improve method documentation.
I'm not adding tests for the helpers. I think they're so simple that we
really only care whether they work in conjunction with other methods,
like Node#text.
2012-08-01 13:29:50 +02:00