chop 0.38.1 → 0.38.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 667c9f85d886a69ae08b9ae3b4b8ef5c7a012a6f930bbbf38926ef2020660310
4
- data.tar.gz: 1bbc14a87fae8b894b4bd3a488e298d874c5e6aa4fd09c00d3eeec448c6d35ba
3
+ metadata.gz: 618c4cce433e28b5660405cd4878afb4b00972e21937fd47e62c3935248eb0ff
4
+ data.tar.gz: 129ea76c1600fce10a1f3cb138c0c4d66e1d0ec5b0e32f5412ea645f3dd1b835
5
5
  SHA512:
6
- metadata.gz: 223f9ad5013a389fc96e0bf3b94631e63e9f5936be23972aa2a0baa5f6a87b43796cb61bc1f5e409480972724b32a1a85590cbc0f3add4ae6e50c64333a7c81a
7
- data.tar.gz: d42b1c343e98dbc2172613873e40fb80a91e5f79a9f5baf975d0e9c1c3629da76ece7ea18cce31e2e8c63094b409dc25ffefc70d31b777801e5bf4b9632909cb
6
+ metadata.gz: c653b65e17c6f08dc2bd114f39b0b8302784468396314b4abb42c64c7c4cf0dc93398d4971e56f33206dd261671d9cfef137998be5e0b7b00a29eefbfd9fcf60
7
+ data.tar.gz: 112902163bd81452fa61e1c9d5e08d8b4cbef341e1798b75020adab9fd201df5026af7096f60aa4adb96c6858c5d7769e9e643d6ea9d09d504cf32cc57bf920b
data/lib/chop/dsl.rb CHANGED
@@ -14,7 +14,9 @@ module Chop
14
14
  elsif selector.respond_to?(:tag_name)
15
15
  selector.tag_name
16
16
  else
17
- session.find(selector).tag_name
17
+ session.document.synchronize(timeout || Capybara.default_max_wait_time, errors: session.driver.invalid_element_errors) do
18
+ session.find(selector).tag_name
19
+ end
18
20
  end.camelize
19
21
  klass = const_get("Chop::#{class_name}")
20
22
  kwargs[:session] = session
data/lib/chop/form.rb CHANGED
@@ -46,13 +46,16 @@ module Chop
46
46
  return nil if locator.nil?
47
47
 
48
48
  @locator = locator.to_s
49
- @all_fields = @session.all(@css_selector)
50
49
 
51
- find_by_direct_attributes ||
52
- find_by_aria_label ||
53
- find_by_associated_label ||
54
- find_by_wrapping_label ||
55
- raise_not_found
50
+ @session.document.synchronize do
51
+ @all_fields = @session.all(@css_selector, wait: false)
52
+
53
+ find_by_direct_attributes ||
54
+ find_by_aria_label ||
55
+ find_by_associated_label ||
56
+ find_by_wrapping_label ||
57
+ raise_not_found
58
+ end
56
59
  end
57
60
 
58
61
  private
data/lib/chop/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Chop
2
- VERSION = "0.38.1"
2
+ VERSION = "0.38.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.38.1
4
+ version: 0.38.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micah Geisel
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-02-18 00:00:00.000000000 Z
11
+ date: 2026-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord