effective_test_bot 1.5.2 → 1.5.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e3b245c1e3d790a7705eabf892a9f3d4e27661680f87041c048467f356bc39c2
4
- data.tar.gz: 12061d2b15996bd76d0e2765064223a323364d260107ab40999ec8ff434dd0f7
3
+ metadata.gz: b5d2b6ddf1e130f21cdd75c9de378f53d634cc6653ebb7f3099cacd8107f3167
4
+ data.tar.gz: 0ff7e7d9f70e8c79025d98dc545b445a8dce7cc3af7a2fcd6fbc5b9556e8c9e0
5
5
  SHA512:
6
- metadata.gz: 19368a5e42953b5e9b054eccf96e0330331bb2408292a919e433ac6c94de06034ef53c7c4560a62f5d9e35680948c12ae0516f9c33a84deb3434b564855713c2
7
- data.tar.gz: c3a725d50cfda94e55d575fc59d17bbe8986dc90177e8006981a34e64bcde902e23c1c5fd6f71f3ae57a2b2f2eb561110ab4d50949fa5464cad676d92184689a
6
+ metadata.gz: 979b5895d9261f028a5642e76aefa2d98a2394f21b213b6bd1343cc46b9505bae18f3f013c6675fe723e6b1df5794db8043eea9514ed1ab39a707e6bc29f7bd3
7
+ data.tar.gz: 6031706d32bddbdf9daffd54a7a83f2dcb3bf78712745496dcb5a7b91ec3c81c9ffb162f8265f88828c88ad92e6b912ae55d95bb92cf314a5dc31bd24d674966
@@ -1,3 +1,3 @@
1
1
  module EffectiveTestBot
2
- VERSION = '1.5.2'.freeze
2
+ VERSION = '1.5.3'.freeze
3
3
  end
@@ -151,9 +151,14 @@ module EffectiveTestBotFormFiller
151
151
  def fill_input_checkbox(field, value)
152
152
  return if [nil, false].include?(value)
153
153
 
154
+ if field['class'].to_s.include?('custom-control-input')
155
+ label = all("label[for='#{field['id']}']", wait: false).first
156
+ return label.click() if label
157
+ end
158
+
154
159
  begin
155
160
  field.set(value)
156
- rescue => e
161
+ rescue Exception => e
157
162
  label = all("label[for='#{field['id']}']", wait: false).first
158
163
  label.click() if label
159
164
  end
@@ -162,9 +167,14 @@ module EffectiveTestBotFormFiller
162
167
  def fill_input_radio(field, value)
163
168
  return if [nil, false].include?(value)
164
169
 
170
+ if field['class'].to_s.include?('custom-control-input')
171
+ label = all("label[for='#{field['id']}']", wait: false).first
172
+ return label.click() if label
173
+ end
174
+
165
175
  begin
166
176
  field.set(value)
167
- rescue => e
177
+ rescue Exception => e
168
178
  label = all("label[for='#{field['id']}']", wait: false).first
169
179
  label.click() if label
170
180
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_test_bot
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.2
4
+ version: 1.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-14 00:00:00.000000000 Z
11
+ date: 2023-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails