Commit Graph

20 Commits

Author SHA1 Message Date
Thomas Walpole a84d724d16 Implement Node#send_keys support for selenium 2015-02-25 10:59:05 -08:00
Gabriel Sobrinho 86584c0f6e Fix typo on Capybara::Driver::Node#right_click 2014-06-29 19:28:54 -03:00
Thomas Walpole 2ce36695eb Implementation for issue #1319 - propagate fill_in options to Element#set 2014-06-19 08:45:04 -07:00
Dan Mace a4cd737ebb Use Ruby 2.x compatible rescue clauses
Ruby 2.x doesn't support non-class/module arguments to rescue clauses.
Ruby 1.9 only supported it due to what is now considered a regression:

https://bugs.ruby-lang.org/issues/4438

Remove string arguments from rescue clauses to prevent TypeErrors from
being raised during rescue attempts.
2014-04-22 12:06:34 -04:00
Thomas Walpole 0aa6aa5b43 Add double_click and right_click to element - support in selenium 2013-05-10 10:12:50 -07:00
randoum 44be4455bf Add simple description to exception
Add description to NotSupportedByDriverError exception to help tracking during debugging
2013-03-09 11:50:27 +08:00
Thomas Walpole 15932d5a86 hover implementation 2013-02-25 10:37:25 -08:00
Jonas Nicklas 0f9206fd42 Add option to `text` which makes it possible to return all text, not just invisible text, closes #960 2013-02-17 14:47:32 +01:00
benlovell d06587234e Added disabled? to driver 2013-01-29 09:46:56 +00:00
Matthew Horan 202e072359 Delegate node equality to driver
The native representation of a node may not be equal across driver
implementations.  Instead, let the driver define equality.
2012-11-19 23:24:52 -05:00
Jarl Friis 3e2d7c2114 Support for multiple file upload.
Squashed commit of the following:

commit fb88141863
Author: Jarl Friis <jarl@softace.dk>
Date:   Mon Sep 3 22:06:07 2012 +0200

    Improved implementation. Removing need for YAML. Extending the driver API to take an Array when 'multiple' attribute is present.

commit 977f1c50c2
Author: Jarl Friis <jarl@softace.dk>
Date:   Mon Sep 3 11:56:04 2012 +0200

    Changing decision criteria to support 1.8.7

commit b217deef4a
Author: Jarl Friis <jarl@softace.dk>
Date:   Mon Sep 3 10:38:16 2012 +0200

    Support for 'multiple' attribute in input tags, see https://github.com/jnicklas/capybara/issues/778

commit 155b9fcf79
Author: Jarl Friis <jarl@softace.dk>
Date:   Mon Sep 3 10:33:00 2012 +0200

    Test that demonstrates lack of support for 'multiple' attribute in input tags, see https://github.com/jnicklas/capybara/issues/778

Conflicts:

	lib/capybara/node/actions.rb
	lib/capybara/selenium/node.rb
	lib/capybara/spec/session/attach_file_spec.rb
2012-09-17 20:04:00 +02:00
Martin Mauch 001a44220a Return the real class on Capybara::Driver::Node#inspect. 2012-06-21 14:26:33 +03: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
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