Commit Graph

27 Commits

Author SHA1 Message Date
Thomas Walpole 7ce97f2539 Node#[] should prefer properties over attributes 2017-11-09 08:04:32 -08:00
Thomas Walpole 921a383f6c Deprecate the Node#attached? method 2017-11-08 13:19:07 -08:00
Thomas Walpole 685371079e Support threadsafe/per session config mode 2017-05-03 21:29:13 -04:00
Thomas Walpole 1617ee424c Support Capybara 2.13 and fix some hound warnings 2017-03-25 14:29:44 -04:00
Thomas Walpole b6fdc65bf1 Support most of the keys specified by Capybara for Node#send_keys 2017-03-25 14:29:44 -04:00
Thomas Walpole ed295f25bd Update to modern RSpec 2017-02-06 10:56:58 -08:00
Thomas Walpole 43ebe80704 Support Capybara 2.11
* Update versions being tested against
* Implement missing APIs from newer versions
2017-01-13 09:12:31 -05:00
nritholtz 1882983190 Add :backspace to send_keys 2016-04-20 16:39:18 -04:00
Max Nordlund c226439827 Add basic send_keys implementation
This only supports simple strings, and arrays of simple strings. No
modifiers and _very_ limited symbol support (:enter and :space).
2016-03-29 22:02:49 -04:00
Joe Ferris f524847616 Deprecate methods on internal classes
We currently expose some functionality through internal classes,
particularly going through `driver.browser`. With this change,
everything except the public Capybara API and a few extensions on our
`Driver` class becomes deprecated.
2015-05-22 11:42:23 -04:00
Kohei Suzuki 6945ed52c7 Check node index atomically to prevent race condition
Fixes Capybara::Webkit::InvalidResponseError when nodes are missing.
2013-12-06 10:43:17 -05:00
Matthew Horan f8731b692a Enabled options in disabled selects are disabled
This is the behavior of Selenium and has been standardized in Capybara.
2013-03-28 20:36:24 -04:00
David Tengdin and Matthew Horan 47ac51e4dc Implement Node#hover 2013-02-28 13:41:50 -05:00
Michal Cichra 89ad8b6811 added support for double and right click 2013-02-27 10:26:54 -05:00
David Tengdin and Matthew Horan 60a8300821 Rename Find command to FindXpath 2013-02-26 15:19:18 -05:00
David Tengdin and Matthew Horan cfe1e57884 Implement Driver#find_css and Node#find_css 2013-02-25 21:24:22 -05:00
Matthew Horan 09e19e305f Implement Node#all_text
The #text method in Capybara 2.1 differentiates between visible and
invisible text. This requires that Node implement #all_text.

To maintain backwards compatibility with Capybara 2.0, Node#text has
been aliased to #visible_text.
2013-02-18 20:52:32 -05:00
Matthew Horan 5dcbe9a0a4 Raise Capybara.ClickFailed on click test failure
Prevents Node#set from succeeding when click test fails.
2013-02-11 00:04:35 -05:00
Matthew Horan 4837ff144c Raise error when elements are unclickable 2013-02-09 23:35:52 -05:00
Matthew Horan 3c8ad255ad Ensure the attribute exists before returning its value 2012-11-30 21:38:56 -05:00
Matthew Horan ea2f785ba8 Implement HTML5 multiple file upload 2012-11-30 21:38:56 -05:00
Matthew Horan 0efbbe0fbc Implement element equality 2012-11-30 21:38:56 -05:00
Carlos Eduardo L. Lopes 32db848231 Using the Javascript naming conventions on the innerHTML accessors methods 2012-09-28 11:27:43 -03:00
Carlos Eduardo L. Lopes a2748b0e62 Using separated methods to set and get the innerHTML 2012-09-27 11:27:04 -03:00
Carlos Eduardo L. Lopes 96e3401d3f Add inner_html and inner_html= methods 2012-09-26 18:30:35 -03:00
James Adam e67a30fb16 Allow unselecting for select nodes with empty `multiple` attributes.
As well as `<select multiple="multiple" ...>`, it's also valid to
use an empty attribute (i.e. `<select multiple ... >`). In order to
support this, we need to treat `multiple` in the same way as
`disabled` or `checked`.
2012-08-27 09:50:22 -04:00
Joe Ferris 259a38f206 Follow new capybara driver naming/module conventions 2012-07-08 12:31:18 -07:00
Renamed from lib/capybara/driver/webkit/node.rb (Browse further)