scoutui 2.0.3.54.pre → 2.0.3.55.pre

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
  SHA1:
3
- metadata.gz: 3584397e18dd66ba509646bd9072a9c74649d22a
4
- data.tar.gz: 6d95f1c8be7a8b4cc380ffcd63d83206e2158daa
3
+ metadata.gz: eeca393a6b6a28673b7a9b1fd4c3ecc4d86a5cf1
4
+ data.tar.gz: f9ae75022205d7c522f81703a94bad675728e171
5
5
  SHA512:
6
- metadata.gz: 30f95d3f6f74e702d24bbb44109f18d0140c1908ac58c7bf79f3cbe3fe631065625c1c6f7a32e809bd7b69807791252bf4bedf86486015a14c0c97e4492799e6
7
- data.tar.gz: 29cf6a760265ff1df710e1d1a2dcf5f43624bedb70728d77cd742bc09aac849ac32f1d9026f3f03d476a5dae8e94de3883de40a4c47ee12624f0585e385e51e7
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::Logger::LogMgr.instance.debug __FILE__ + (__LINE__).to_s + " click_object.execute: #{@cmd}"
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..10).each do |_i|
75
+ (0..retries).each do |_i|
76
76
 
77
77
  _retry = true
78
- Scoutui::Logger::LogMgr.instance.debug __FILE__ + (__LINE__).to_s + " #{_i} => click(#{_locator})"
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
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Scoutui
2
- VERSION = "2.0.3.54.pre"
2
+ VERSION = "2.0.3.55.pre"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scoutui
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3.54.pre
4
+ version: 2.0.3.55.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Kim