Commit Graph

34 Commits

Author SHA1 Message Date
Thomas Walpole 7fca910080
Support locator type checking and add a warning when locator looks to be CSS/XPath but shouldn't be (#2143)
* Support locator type checking and add a warning when locator looks to be CSS/XPath but shouldn't be

* Raise error if an element is passed to the :from option of select/unselect
2018-12-14 11:53:09 -08:00
Thomas Walpole e320f5d7fc style updates 2018-07-16 15:04:52 -07:00
Thomas Walpole a483e8d4c5 Only include node filters in error descriptions if at least one was applied 2018-07-16 09:32:37 -07:00
Thomas Walpole da5e5aae98 Allow "select" of datalist values from input element 2018-04-30 10:08:41 -07:00
Thomas Walpole 618dd9ff70 Rubocop driven spec style cleanup 2018-03-01 11:44:55 -08:00
Thomas Walpole 4a7c4d2314 Ensure Capybara.exact is set correctly for specific tests 2018-02-27 17:43:16 -08:00
Thomas Walpole ddd1d7f401 Remove `Capybara.exact_options` setting 2018-01-03 09:04:12 -08:00
Thomas Walpole 4bde730600 Deprecate `Capybara.exact_options` 2017-11-19 12:30:55 -08:00
Thomas Walpole ce23c18797 Include within scope in element not found/ambiguous errors 2017-09-21 05:46:34 -07:00
Thomas Walpole 56047ca472 Add visibility condition to selector query description/error messages 2017-07-20 09:59:18 -07:00
Thomas Walpole 33c4368228 Ensure applied filters with default values are expressed in selector descriptions 2017-07-19 14:22:57 -07:00
Thomas Walpole c5d7089e0e generally prefer ruby 1.9 hash format 2016-10-04 11:10:29 -07:00
Thomas Walpole 07e7777425 frozen literal magic comment 2016-03-07 16:52:19 -08:00
Thomas Walpole 7932c2e429 warn when attempting to select a disabled option 2015-06-05 13:24:57 -07:00
Thomas Walpole ba37f78692 Update all tests to "expect" format and add support for RSpec 3 usage
Swap from :skip to :capybara_skip since :skip is now used by RSpec 3
Add rspec 3 testing to beta gemfile
2014-04-02 14:33:26 -07:00
CJ Kihlbom and Jonas Nicklas 7b54f06283 Add options to `select` 2013-02-24 17:02:32 +01:00
Jonas Nicklas cceb6b8af7 Add an option which reverts options to Capy 2.0 behaviour 2013-02-16 10:20:50 +01:00
Jonas Nicklas 7e4d3b85f5 Use expect..to instead of the `running` alias 2012-10-30 14:26:19 +01:00
Jonas Nicklas dd805d639b Ignore disabled fields and buttons, closes #771 2012-09-09 17:18:03 +02:00
Jonas Nicklas c7bf8359f2 Support non string arguments
Most of this work was done in the xpath gem, this
commit really only adds tests.
2012-09-06 09:33:43 +02:00
Jonas Nicklas 2462443f89 Use a custom spec helper instead of shared specs 2012-07-21 16:46:56 -04:00
Jonas Nicklas and Nicklas Ramhöj 5935b6c052 Use HaveSelector matchers for more RSpec matchers 2012-06-08 17:07:12 +02:00
Jonas Nicklas and Nicklas Ramhöj ad833a1e13 Selectors can no longer have custom failure messages 2012-06-08 15:53:25 +02:00
Jonas Nicklas cc05b1d63b Raise an error when there are multiple elements found 2012-02-01 13:24:13 +01:00
Adam McCrea 7a383b4251 Add custom selectors to avoid duplication and to
centralize finder strategies and failure messages
2012-01-02 11:12:28 +01:00
Adam McCrea dfc217f005 Add specs for finder error messages 2012-01-02 11:12:28 +01:00
Thomas Walpole 3f53e82ed9 Selenium::WebDriver::Element#select and #toggle are deprecated - replace with click 2011-06-23 11:42:00 -07:00
Rob Holland 55476db4bd Fix the rack driver to favour option's value attributes over their content. 2010-10-04 21:17:07 +01:00
Jonas Nicklas c67dceb537 select/unselect do not require a from option
This way they can more conveniently be called on
a found element. E.g.:

find('#my_select').select('Some option')
2010-10-03 19:15:40 +02: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
Steven Parkes 5cf2b55cca Add test so that will fail on incorrectly scoped selects 2010-07-01 19:45:02 -07:00
Jonathon Padfield c6918f307c Fixed the xpath when selecting an option so that it should match labels with preceding or trailing whitespace. 2010-06-01 13:16:58 +10:00
Jonas Nicklas cbb42a1da7 XPath escape value in select/unselect under rack-test 2010-04-26 17:23:34 +02:00
Jonas Nicklas cf1aa4d073 Moved shared specs into lib directory
This way, implementations of other drivers can
use the specs to verify that they are working
correctly.
2010-04-09 16:41:35 +02:00
Renamed from spec/dsl/select_spec.rb (Browse further)