Commit Graph

8 Commits

Author SHA1 Message Date
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
Jonas Nicklas 8d341948fd select_option/unselect_option are now called on option node
This means that we can move the find object into
Capybara::Node instead of Capybara::Driver::Node
which gives us AJAX waiting and preference for
exact matches for free.
2010-08-14 13:43:38 +02:00
Jonas Nicklas f2509fb1af Rename method to access native node to 'native'
Also make the native node accessible from the
Capybara::Node.
2010-07-15 20:55:12 +02:00
Jonas Nicklas 787405be40 Explicit delegation instead of blanket forward 2010-07-10 16:34:33 +02:00
Jonas Nicklas fe5e308f41 Rearranged drivers a little bit 2010-07-10 03:11:54 +02:00
Jonas Nicklas 77168519a1 Wrap driver nodes in new Node class which inherits from session 2010-07-10 01:51:20 +02:00
Jonas Nicklas 02d86ac992 Rename node methods which conflic with session methods 2010-07-10 01:18:39 +02:00
Jonas Nicklas bf57da1dc9 Move node into driver directory where it belongs 2010-07-09 20:08:33 +02:00