Thomas Walpole
9905de43f9
Fix results with negative max bounded ranges
2020-02-03 17:48:36 -08:00
Thomas Walpole
4a380967fd
Support beginless ranges
2020-01-25 17:47:05 -08:00
Thomas Walpole
cd199105ea
Fix miscellaneous new Rubocop issues
2019-10-15 18:06:45 -07:00
Thomas Walpole
7ca1cdc828
Fix Rubocop Issues
2019-10-15 17:40:27 -07:00
Thomas Walpole
ad5d347e43
Remove extraneous focus_ metadata
2019-08-17 17:24:40 -07:00
Thomas Walpole
2e052792a5
JRuby 9.2.8.0 has been released and no longer needs the lazy results workaround
2019-08-16 10:57:45 -07:00
Thomas Walpole
ae94abf230
Enable partial double verification and cleanup some specs
2019-04-20 10:23:07 -07:00
Thomas Walpole
1e2f1b86e4
Update to JRuby 9.2.7.0
2019-04-14 13:11:25 -07:00
Thomas Walpole
2ffbb3c6a5
Allow drivers to provide initial element visibility with found elements and receive other optional filtering options for find_xpath/css.
...
Implement initial visibility return for Selenium
Use text content to pre-filter XPath searches
2019-01-08 10:52:19 -08:00
Thomas Walpole
c705ffc1ac
Add Capybara::Selector::for
2018-11-16 11:19:40 -08:00
Thomas Walpole
e65c6c0547
Support Ruby 2.6 endless range syntax in Result#[]
2018-11-15 16:42:07 -08:00
Thomas Walpole
e320f5d7fc
style updates
2018-07-16 15:04:52 -07:00
Thomas Walpole
b1f4709c6e
General code cleanup
2018-05-16 12:47:08 -07:00
Thomas Walpole
bda90bb504
Fix oversight in Result#[] length optimization
2018-05-11 15:39:34 -07:00
Thomas Walpole
82b50770b1
Optimize Result#[] for Range and idx.length options
2018-05-11 15:14:51 -07:00
Thomas Walpole
bbec20f91d
remove extraneous :focus_
2018-05-04 10:22:40 -07:00
Thomas Walpole
26bc517afe
Add a test to identify when JRuby fixes lazy enumeration
2018-05-03 14:19:03 -07:00
Thomas Walpole
a17e9c36fa
Add rubocop-spec - some disabled for now
2018-04-30 18:00:16 -07:00
Thomas Walpole
618dd9ff70
Rubocop driven spec style cleanup
2018-03-01 11:44:55 -08:00
Thomas Walpole
9410b6c176
Session#all should wait for elements
2018-01-03 09:04:12 -08:00
Thomas Walpole
9ebb7fca0b
get invalid element errors from session.driver
2017-05-31 15:47:16 -07:00
Thomas Walpole
d8368b783b
invalid element error while filtering results shold be caught
2017-05-31 11:50:32 -07:00
Thomas Walpole
047098ad3f
Disable jruby lazy results evaluation again
2017-02-16 13:34:45 -08:00
Thomas Walpole
f7e537006a
allow lazy results evaluation on JRuby 9.1.6.0+
2016-12-27 11:03:04 -08:00
Thomas Walpole
88be820f38
fix warnings in tests
2016-11-21 11:53:59 -08:00
Thomas Walpole
4bd9806804
Capybara::Result#each returns an Enumerator when called without a block
2016-10-18 11:15:25 -07:00
Thomas Walpole
ff51c95e76
Change how app errors are raised so cause gets set as wanted in JRuby
...
JRuby has an issue with lazy enumerator evaluation - disable Capybara::Result optimization when using JRuby
See: https://github.com/jruby/jruby/issues/4212
2016-10-07 17:14:30 -07:00
Thomas Walpole
cb85ed5d13
optimize Result#matches_count?
2016-08-31 14:55:03 -07:00
Thomas Walpole
676fba48e2
Optimize Capybara::Result by evaluating filters lazily when possible
2016-08-15 13:28:32 -07:00
Thomas Walpole
07e7777425
frozen literal magic comment
2016-03-07 16:52:19 -08:00
Thomas Walpole
85e9fcd7f2
fix feature definition in case user has RSpec set not to expose dsl globally - test in rspec 3 beta tests
2014-04-03 10:25:03 -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
Andrey Botalov
4df077e375
Delegate index and values_at from Capybara::Result
2013-10-29 23:43:11 +03:00
Phil Lee
b9c88ee2a1
Results can now be sampled.
...
An instance of Result can now call #sample. This is delegated to Array#sample.
This allows a random result to be chosen.
This is useful if we want to check one of the results but with no particular preference as to which result.
2013-09-16 12:19:06 +01:00
adammck
86bcb24071
Delegate common Result methods to Array
...
Closes upstream #784 .
2012-08-09 20:54:59 -04:00