scoutui 2.0.3.54.pre → 2.0.3.55.pre
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 +4 -4
- data/lib/scoutui/commands/click_object.rb +7 -5
- data/lib/scoutui/utils/utils.rb +12 -0
- data/lib/scoutui/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eeca393a6b6a28673b7a9b1fd4c3ecc4d86a5cf1
|
4
|
+
data.tar.gz: f9ae75022205d7c522f81703a94bad675728e171
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd60ab3780ad96b0c8866065e86ef0b319d75209dadaff9e4d38e7bef3353a50e4f392508bcd61bca28d053749ec94eb6f6f23c9071bed6c77f437c90c6eff52
|
7
|
+
data.tar.gz: fd29d6426dac7507658d5cccad10e782e0bbd6db13f2ed016808de39542e8ac7483c7205c2c6ea6f10cb8a6875243ce4678c6c90edbb15e75e85839bb40dcea1
|
@@ -41,7 +41,9 @@ module Scoutui::Commands
|
|
41
41
|
|
42
42
|
def execute(drv, e=nil)
|
43
43
|
|
44
|
-
Scoutui::
|
44
|
+
retries = Scoutui::Utils::TestUtils.instance.retries()
|
45
|
+
|
46
|
+
Scoutui::Logger::LogMgr.instance.debug __FILE__ + (__LINE__).to_s + " click_object.execute: #{@cmd} with #{retries} retries"
|
45
47
|
obj=nil
|
46
48
|
|
47
49
|
@drv=drv if !drv.nil?
|
@@ -66,16 +68,14 @@ module Scoutui::Commands
|
|
66
68
|
_endTime=nil
|
67
69
|
_clickTime=0
|
68
70
|
|
69
|
-
|
70
|
-
|
71
71
|
begin
|
72
72
|
|
73
73
|
if _locator
|
74
74
|
|
75
|
-
(0..
|
75
|
+
(0..retries).each do |_i|
|
76
76
|
|
77
77
|
_retry = true
|
78
|
-
Scoutui::Logger::LogMgr.instance.debug __FILE__ + (__LINE__).to_s + " #{_i}
|
78
|
+
Scoutui::Logger::LogMgr.instance.debug __FILE__ + (__LINE__).to_s + " #{_i} ======> click(#{_locator})"
|
79
79
|
|
80
80
|
begin
|
81
81
|
|
@@ -110,6 +110,8 @@ module Scoutui::Commands
|
|
110
110
|
Scoutui::Logger::LogMgr.instance.debug __FILE__ + (__LINE__).to_s + " highlight then click : #{obj}"
|
111
111
|
end
|
112
112
|
|
113
|
+
elsif obj.is_a?(Selenium::WebDriver::Element) && obj.displayed?
|
114
|
+
Scoutui::Logger::LogMgr.instance.debug __FILE__ + (__LINE__).to_s + " object is displayed, but not enabled"
|
113
115
|
end
|
114
116
|
|
115
117
|
|
data/lib/scoutui/utils/utils.rb
CHANGED
@@ -53,6 +53,7 @@ module Scoutui::Utils
|
|
53
53
|
@options[:debug]=false
|
54
54
|
@options[:fail_fast]=false
|
55
55
|
@options[:screenshots]=false
|
56
|
+
@options[:retries]=2
|
56
57
|
|
57
58
|
|
58
59
|
@app_model=nil
|
@@ -243,6 +244,13 @@ module Scoutui::Utils
|
|
243
244
|
loadModel(@options[:page_model].to_s)
|
244
245
|
}
|
245
246
|
|
247
|
+
opt.on('--retries RETRIES') { |o|
|
248
|
+
if o.match(/\d+/)
|
249
|
+
@options[:retries] = o.to_i
|
250
|
+
end
|
251
|
+
}
|
252
|
+
|
253
|
+
|
246
254
|
opt.on('-w', '--wait WaitOnElement') { |o|
|
247
255
|
if o.match(/\d+/)
|
248
256
|
@options[:default_wait] = o.to_i
|
@@ -445,6 +453,10 @@ module Scoutui::Utils
|
|
445
453
|
@options[:role]
|
446
454
|
end
|
447
455
|
|
456
|
+
def retries()
|
457
|
+
@options[:retries]
|
458
|
+
end
|
459
|
+
|
448
460
|
def getSauceName()
|
449
461
|
@options[:sauce_name].to_s
|
450
462
|
end
|
data/lib/scoutui/version.rb
CHANGED