Commit Graph

19 Commits

Author SHA1 Message Date
Jonas Nicklas 08a8fd6834 Use JS to clear field, should be more performant 2012-11-20 14:33:47 +01:00
Jonas Nicklas 7859efb757 Merge branch 'selenium-clear-input' of git://github.com/DouweM/capybara into DouweM-selenium-clear-input 2012-11-20 14:32:09 +01: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
Douwe Maan f280fddc45 Properly clear input by moving to the end before backspacing in Selenium driver 2012-11-17 02:08:40 +01:00
Jonas Nicklas 90d37dbc2d Don't memoize attributes, see #819
instead cache type and tag name in local variables at the beginning of set. Attributes can change, it's not a good idea to memoize them. This way we get the same performance benefit without the undesired side-effects.
2012-10-26 15:16:57 +02:00
Jonas Nicklas 6ffdea1c03 Merge pull request #825 from softace/master_multiple_file_upload
Support for multiple file upload.
2012-09-26 05:44:16 -07:00
Olek Janiszewski 1d8a0ef4a8 Actually memoize the attributes of a Selenium node 2012-09-19 11:06:01 +02:00
Matthew Wilson 8a9c975fc5 https://github.com/jnicklas/capybara/issues/819 Memoize the values returned by tag_name and [] to speed up remote Selenium jobs 2012-09-18 17:35:19 -07: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
Andrew Kasper 6dc095b3fa Emulate user input to prevent onchange from being triggered twice in Selenium driver 2012-07-12 08:25:31 -04:00
Jonas Nicklas a1b1cc7132 Remove resynchronization for Selenium 2012-02-01 14:23:17 +01:00
Jonas Nicklas c32f9a95f5 Don't call #clear on file fields in Selenium, closes #541 2011-11-15 17:07:55 +01:00
Thomas Walpole f7590ab339 Selenium::Webdrive#drag_and_drop_on is deprecated 2011-07-08 10:06:40 -07:00
Thomas Walpole 3f53e82ed9 Selenium::WebDriver::Element#select and #toggle are deprecated - replace with click 2011-06-23 11:42:00 -07: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
Aaron Gibralter eef139ff48 Refactor Capybara::Selenium::Node#[] and Capybara::Selenium::Node#value 2011-04-28 12:30:01 -07:00
Aaron Gibralter f02754183b Fix deprecation warning in selenium driver.
As of selenium-webdriver 0.2.0:
"Selenium::WebDriver::Element#value is deprecated, please use Selenium::WebDriver::Element#attribute('value')"
2011-04-27 15:17:56 -07:00
Jonas Nicklas 79ff093727 Move and rename Selenium driver class 2011-04-11 06:24:00 +01:00