Commit Graph

24 Commits

Author SHA1 Message Date
Thomas Walpole 0c22d98bbe Ignore form submit clicks when no associated form 2013-04-22 09:38:13 -07:00
Jonas Nicklas 2d5c8e066f Revert "Return html inside textareas when page is loaded. Closes #1025"
It seems like textareas must not contain HTML content according to the
HTML spec.

This reverts commit ca4781f186.

Conflicts:
	lib/capybara/spec/session/node_spec.rb
2013-03-27 14:54:16 +01:00
Jonas Nicklas 6ce45f2efb Cast to string if field has maxlength value, closes #989 2013-03-26 21:29:44 +01:00
Jonas Nicklas ca4781f186 Return html inside textareas when page is loaded. Closes #1025 2013-03-26 16:36:27 +01:00
Thomas Walpole 948de9e6d9 Make RackTest::Node#disabled? behavior match webdriver for option and optgroup elements 2013-03-15 12:11:12 -07:00
Thomas Walpole 48185aa073 readonly support 2013-03-09 13:42:35 -08:00
Jonas Nicklas 2380ba854c Merge branch 'css' of git://github.com/twalpole/capybara into twalpole-css
Conflicts:
	lib/capybara/query.rb
2013-02-19 19:56:49 +01:00
Thomas Walpole eba8eaba40 change node and driver api to use find_xpath and find_css 2013-02-19 09:03:26 -08:00
Thomas Walpole f6ababc62d Selector remembers format, CSSHelpers, and drivers assumed to handle css 2013-02-18 14:41:44 -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
Jonas Nicklas cdda35b17c Merge pull request #956 from twalpole/submit_outside_form
support form attribute for submit buttons
2013-02-15 13:38:51 -08:00
Thomas Walpole 239c212714 support form attribute for submit buttons 2013-02-08 12:12:41 -08:00
benlovell 7ec047e208 Added disabled? to the node 2013-01-29 09:35:23 +00:00
James Cook a2a7444a15 Clean up Capybara::RackTest::Node#set 2013-01-09 21:19:36 -05: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
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
Jo Liss 060fc3a72d RackTest::Node#text now normalizes whitespace like Selenium
Previously Rack::Test's #text method might have returned
"   some  text ", whereas now it returns "some text", just like
Selenium.
2012-01-08 23:16:57 +01:00
Mark Dodwell 79ce6f1f90 implement Element#text for RackTest to only return visible text, as with Selenium 2011-10-23 22:51:55 -07:00
Jonas Nicklas and Kim Burgestrand 0188693ced Added option for rack-test driver to disable data method hack closes #184 2011-08-30 11:20:29 +02:00
Jo Liss c51a232bbc Fix rack-test to ignore maxlength="", closes #396 2011-07-08 12:48:25 +02:00
Kevin Fitzpatrick & Matthew DuVall 2d2f877451 Fixed again, previous checkin was to the wrong node.rb class. chromedriver + Chrome 12 YELLS tag names in UPPERCASE 2011-05-17 12:21:51 -07:00
Carl Jackson & Davis W. Frank 5529be2a70 Fix because chromedriver + Chrome 12 YELLS tag names in UPPERCASE 2011-05-13 14:46:47 -07:00
Jonas Nicklas 8ce6d4eb9d Split up rack-test driver into multiple classes 2011-04-05 17:42:12 +02:00