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 +4 -4
- data/lib/effective_test_bot/version.rb +1 -1
- data/test/support/effective_test_bot_form_filler.rb +12 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5d2b6ddf1e130f21cdd75c9de378f53d634cc6653ebb7f3099cacd8107f3167
|
4
|
+
data.tar.gz: 0ff7e7d9f70e8c79025d98dc545b445a8dce7cc3af7a2fcd6fbc5b9556e8c9e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 979b5895d9261f028a5642e76aefa2d98a2394f21b213b6bd1343cc46b9505bae18f3f013c6675fe723e6b1df5794db8043eea9514ed1ab39a707e6bc29f7bd3
|
7
|
+
data.tar.gz: 6031706d32bddbdf9daffd54a7a83f2dcb3bf78712745496dcb5a7b91ec3c81c9ffb162f8265f88828c88ad92e6b912ae55d95bb92cf314a5dc31bd24d674966
|
@@ -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.
|
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-
|
11
|
+
date: 2023-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|