1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00
Commit graph

25 commits

Author SHA1 Message Date
John Firebaugh
74aa0ca844 Add #first, and use it in preference to all(*args).first.
This provides a ~10% speed improvement on selenium specs.
2011-01-01 11:25:45 -08:00
John Firebaugh
9d6aebdea8 Ensure that matchers work correctly after actions, closes #171
With browser-based drivers, the has_value?, has_select?, and
has_checked_field? matchers (and their negative counterparts)
did not always work correctly. It is not possible to determine
the dynamic state of inputs purely with XPath, because XPath
has access only to the value, selected, and checked _attributes_,
and only the corresponding _properties_ change in response to
user input. This commit replaces the pure XPath implementation
with one that retrieves all matching inputs and then filters the
results using driver-specific means that do reflect user input.
2010-12-31 11:04:36 -08:00
John Firebaugh
a2b1b3315e Fix spec failures 2010-12-22 12:37:01 -08:00
Jonas Nicklas
2b78681d07 :visible => false now works as expected 2010-12-22 16:10:42 +01:00
Anders Törnqvist
05d969756f Don't swallow errors in find, closes #190 2010-12-10 14:27:26 +01:00
Jonas Nicklas
d223d542f7 Move more of node functionality into subfolder
We have too many top level files, we have multiple
classes in the same file. This allows us to solve
both problems, while also providing a good place
for the new Capybara::Node::Simple (formerly
Capybara::StringNode)
2010-11-21 14:37:45 +01:00
David Chelimsky and Jonas Nicklas
f2fb04f14a Util function for applying matchers to strings 2010-11-12 14:46:46 -06:00
Your Name
9bf7894d31 Removed deprecated stuff 2010-10-29 13:41:49 +02:00
Jonas Nicklas
b9dadbb833 Update for latest xpath gem 2010-10-06 21:07:26 +02:00
Bernerd Schaefer
d584bb34e9 Add Capybara.deprecate
Deprecate methods using this, and set rspec expectations in suite to
prevent deprecation warnings from getting output.
2010-09-18 18:51:33 -05:00
Jonas Nicklas
7065a66503 Document passing a Regexp to :text 2010-09-07 00:32:22 +02:00
Jonas Nicklas
668eeeedd2 Some documentation touch-ups 2010-08-27 20:52:06 +02:00
Jonas Nicklas
e857058b9a Custom selectors can now take options, API changed
This allows custom selectors to be run for certain
objects, allowing very powerful abstractions.
2010-08-27 20:37:39 +02:00
Jonas Nicklas
064ecda28d Added custom selectors 2010-08-18 03:22:54 +02:00
Jonas Nicklas
d59d7bb3f7 Extract HTML xpaths into XPath gem 2010-08-14 18:35:46 +02:00
Jonas Nicklas
34a548efe8 cleanup! 2010-08-14 13:48:26 +02:00
Jonas Nicklas
04e42bf2fa Very first attempt at using XPath for something 2010-08-14 13:45:32 +02:00
Jonas Nicklas
81c20c3b53 Added deprecation warning for #locate 2010-07-19 20:40:28 +02:00
Jonas Nicklas
3070441cab Find and locate now do the same thing
The distinction was confusing and not helpful
under any circumstances really.
2010-07-19 20:18:16 +02:00
Jonas Nicklas
cbfbb32228 Added documentation for finders 2010-07-17 19:05:00 +02:00
Jonas Nicklas
083e580aa8 Node#locate takes same options as other Finders 2010-07-10 17:17:23 +02:00
Jonas Nicklas
645bf14a25 Pass session instead of self to Element 2010-07-10 13:00:50 +02:00
Jonas Nicklas
10fd24b62b Call wait_until on session 2010-07-10 12:43:29 +02:00
Jonas Nicklas
2bd860d23a Slight refactoring to Node#all 2010-07-10 02:32:43 +02:00
Jonas Nicklas
8bf63ee8e4 Split node class into finders, matchers and actions 2010-07-10 02:20:32 +02:00