Commit Graph

11 Commits

Author SHA1 Message Date
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