capybara 3.11.1 → 3.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/History.md +18 -1
  3. data/README.md +4 -4
  4. data/lib/capybara.rb +7 -0
  5. data/lib/capybara/node/element.rb +7 -1
  6. data/lib/capybara/node/matchers.rb +0 -18
  7. data/lib/capybara/queries/base_query.rb +1 -1
  8. data/lib/capybara/queries/selector_query.rb +24 -39
  9. data/lib/capybara/result.rb +4 -4
  10. data/lib/capybara/selector.rb +7 -15
  11. data/lib/capybara/selector/builders/css_builder.rb +59 -27
  12. data/lib/capybara/selector/builders/xpath_builder.rb +50 -35
  13. data/lib/capybara/selector/css.rb +7 -7
  14. data/lib/capybara/selector/filter.rb +1 -0
  15. data/lib/capybara/selector/filter_set.rb +17 -15
  16. data/lib/capybara/selector/filters/locator_filter.rb +19 -0
  17. data/lib/capybara/selector/regexp_disassembler.rb +104 -61
  18. data/lib/capybara/selector/selector.rb +14 -5
  19. data/lib/capybara/selenium/driver.rb +14 -9
  20. data/lib/capybara/selenium/driver_specializations/{marionette_driver.rb → firefox_driver.rb} +3 -3
  21. data/lib/capybara/selenium/nodes/{marionette_node.rb → firefox_node.rb} +1 -1
  22. data/lib/capybara/spec/session/all_spec.rb +8 -1
  23. data/lib/capybara/spec/session/assert_selector_spec.rb +0 -10
  24. data/lib/capybara/spec/session/click_button_spec.rb +5 -3
  25. data/lib/capybara/spec/session/click_link_spec.rb +5 -5
  26. data/lib/capybara/spec/session/find_spec.rb +1 -1
  27. data/lib/capybara/spec/session/first_spec.rb +1 -1
  28. data/lib/capybara/spec/session/has_css_spec.rb +7 -0
  29. data/lib/capybara/spec/session/has_xpath_spec.rb +17 -0
  30. data/lib/capybara/spec/session/node_spec.rb +10 -3
  31. data/lib/capybara/spec/session/window/window_spec.rb +2 -2
  32. data/lib/capybara/spec/spec_helper.rb +1 -2
  33. data/lib/capybara/spec/views/obscured.erb +3 -0
  34. data/lib/capybara/version.rb +1 -1
  35. data/spec/css_builder_spec.rb +99 -0
  36. data/spec/result_spec.rb +6 -0
  37. data/spec/selector_spec.rb +26 -1
  38. data/spec/selenium_spec_chrome.rb +18 -16
  39. data/spec/selenium_spec_chrome_remote.rb +0 -2
  40. data/spec/{selenium_spec_marionette.rb → selenium_spec_firefox.rb} +31 -25
  41. data/spec/selenium_spec_firefox_remote.rb +4 -6
  42. data/spec/shared_selenium_session.rb +2 -2
  43. data/spec/spec_helper.rb +5 -5
  44. data/spec/xpath_builder_spec.rb +91 -0
  45. metadata +10 -7
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capybara
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.11.1
4
+ version: 3.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Walpole
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain:
12
12
  - gem-public_cert.pem
13
- date: 2018-11-16 00:00:00.000000000 Z
13
+ date: 2018-11-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: addressable
@@ -228,14 +228,14 @@ dependencies:
228
228
  requirements:
229
229
  - - ">="
230
230
  - !ruby/object:Gem::Version
231
- version: 3.4.0
231
+ version: 3.5.0
232
232
  type: :development
233
233
  prerelease: false
234
234
  version_requirements: !ruby/object:Gem::Requirement
235
235
  requirements:
236
236
  - - ">="
237
237
  - !ruby/object:Gem::Version
238
- version: 3.4.0
238
+ version: 3.5.0
239
239
  - !ruby/object:Gem::Dependency
240
240
  name: rubocop
241
241
  requirement: !ruby/object:Gem::Requirement
@@ -372,16 +372,17 @@ files:
372
372
  - lib/capybara/selector/filter_set.rb
373
373
  - lib/capybara/selector/filters/base.rb
374
374
  - lib/capybara/selector/filters/expression_filter.rb
375
+ - lib/capybara/selector/filters/locator_filter.rb
375
376
  - lib/capybara/selector/filters/node_filter.rb
376
377
  - lib/capybara/selector/regexp_disassembler.rb
377
378
  - lib/capybara/selector/selector.rb
378
379
  - lib/capybara/selenium/driver.rb
379
380
  - lib/capybara/selenium/driver_specializations/chrome_driver.rb
380
- - lib/capybara/selenium/driver_specializations/marionette_driver.rb
381
+ - lib/capybara/selenium/driver_specializations/firefox_driver.rb
381
382
  - lib/capybara/selenium/extensions/html5_drag.rb
382
383
  - lib/capybara/selenium/node.rb
383
384
  - lib/capybara/selenium/nodes/chrome_node.rb
384
- - lib/capybara/selenium/nodes/marionette_node.rb
385
+ - lib/capybara/selenium/nodes/firefox_node.rb
385
386
  - lib/capybara/selenium/patches/pause_duration_fix.rb
386
387
  - lib/capybara/server.rb
387
388
  - lib/capybara/server/animation_disabler.rb
@@ -523,6 +524,7 @@ files:
523
524
  - lib/capybara/window.rb
524
525
  - spec/basic_node_spec.rb
525
526
  - spec/capybara_spec.rb
527
+ - spec/css_builder_spec.rb
526
528
  - spec/css_splitter_spec.rb
527
529
  - spec/dsl_spec.rb
528
530
  - spec/filter_set_spec.rb
@@ -547,13 +549,14 @@ files:
547
549
  - spec/selenium_spec_chrome.rb
548
550
  - spec/selenium_spec_chrome_remote.rb
549
551
  - spec/selenium_spec_edge.rb
552
+ - spec/selenium_spec_firefox.rb
550
553
  - spec/selenium_spec_firefox_remote.rb
551
554
  - spec/selenium_spec_ie.rb
552
- - spec/selenium_spec_marionette.rb
553
555
  - spec/server_spec.rb
554
556
  - spec/session_spec.rb
555
557
  - spec/shared_selenium_session.rb
556
558
  - spec/spec_helper.rb
559
+ - spec/xpath_builder_spec.rb
557
560
  homepage: https://github.com/teamcapybara/capybara
558
561
  licenses:
559
562
  - MIT