scoutui 2.0.3.9.pre → 2.0.3.10.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 85f74f61ddde9a9f3780649cf4cb0a62025b50fb
4
- data.tar.gz: e2c3e2c54903c23c6ce96052ed1557836f63e4a7
3
+ metadata.gz: 379433019af138d9d6f2a5e962b37587d46d7688
4
+ data.tar.gz: dc223324d2a989f448d67d1f8bd9869b60b6cd20
5
5
  SHA512:
6
- metadata.gz: 323b77c4659a4bd93744b57af6d20a7ef14288e2f373aaab2ff90d351e570648e59578478d9c5be44214eab20168dbf8984cf05e6c3d437d56b34177c042a3ef
7
- data.tar.gz: 0edc3b3ded7801b002d2d0c176e1eba8d3cf12f8737b0160f4faf5ee2a9b94668c29bfcae447950515a8be22885522cd77473f20dc0ca453a14561af454e3ba5
6
+ metadata.gz: 19b4dc342606a2d48b99f7567781735d61e9cab0bddc3890bde4fbde796c08126d633159034b44bbb0f029f281aa323632a240a4d9c1443ee2e776ecb9e00b31
7
+ data.tar.gz: 4eb38148630eef96df31901480266c0317b84882240dbc008854b06cecc9eb86dde97a8ae19f8691ca9be5a486b9658aa8068cbefb57239db62b8f09a64d6ea3
@@ -293,8 +293,7 @@ module Scoutui::Base
293
293
  end
294
294
 
295
295
  if _immediate
296
-
297
- Scoutui::Logger::LogMgr.instance.debug " return immediate (#{rc})"
296
+ Scoutui::Logger::LogMgr.instance.debug __FILE__ + (__LINE__).to_s + " return immediate (#{rc})"
298
297
  return rc
299
298
  end
300
299
 
@@ -30,7 +30,7 @@ module Scoutui::Base
30
30
  def getViewPort()
31
31
  arr=Scoutui::Base::UserVars.instance.getVar('eyes.viewport').match(/(\d+)\s*x\s*(\d+)$/i)
32
32
  if arr.size==3
33
- _sz = {:width => arr[1].to_i, :height => arr[2].to_i }
33
+ _sz = {width: arr[1].to_i, height: arr[2].to_i}
34
34
  end
35
35
 
36
36
  _sz
@@ -44,6 +44,8 @@ module Scoutui::Commands
44
44
  def execute(drv, e=nil)
45
45
  @drv=drv if !drv.nil?
46
46
 
47
+ all_windows = @drv.window_handles.size
48
+
47
49
  _req = Scoutui::Utils::TestUtils.instance.getReq()
48
50
 
49
51
  _locator = @cmd.match(/click\s*\((.*)\)/)[1].to_s.strip
@@ -112,6 +114,12 @@ module Scoutui::Commands
112
114
 
113
115
  Scoutui::Logger::LogMgr.instance.debug "PageElement(#{_locator}) => #{page_elt}"
114
116
 
117
+ if all_windows > @drv.window_handles.size
118
+ Scoutui::Logger::LogMgr.instance.debug __FILE__ + (__LINE__).to_s + " WINDOW was CLOSED. Activate first window as our default";
119
+ @drv.switch_to.window @drv.window_handles.first
120
+ Scoutui::Logger::LogMgr.instance.debug __FILE__ + (__LINE__).to_s + " Switched to first window"
121
+ end
122
+
115
123
  _whenClicked(page_elt)
116
124
  else
117
125
  Scoutui::Logger::LogMgr.instance.warn __FILE__ + (__LINE__).to_s + " Unable to click object that is not displayed."
@@ -10,21 +10,23 @@ module Scoutui::Commands
10
10
 
11
11
  @drv=drv if !drv.nil?
12
12
 
13
- puts __FILE__ + (__LINE__).to_s + " SELECT WINDOW +++++++++++++++"
13
+ Scoutui::Logger::LogMgr.instance.debug __FILE__ + (__LINE__).to_s + " SELECT WINDOW +++++++++++++++"
14
14
 
15
15
  begin
16
16
  _window_id = @cmd.match(/select_window\s*\((.*)\)/)[1].to_s.strip
17
17
 
18
- puts __FILE__ + (__LINE__).to_s + " ==> WindowID : #{_window_id}"
19
- puts __FILE__ + (__LINE__).to_s + " ==> handles : #{@drv.window_handles.length.to_s}"
18
+ Scoutui::Logger::LogMgr.instance.debug __FILE__ + (__LINE__).to_s + " ==> WindowID : #{_window_id}"
19
+ Scoutui::Logger::LogMgr.instance.debug __FILE__ + (__LINE__).to_s + " ==> handles : #{@drv.window_handles.length.to_s}"
20
20
 
21
21
  i=0
22
22
  @drv.window_handles.each do |_w|
23
23
  puts __FILE__ + (__LINE__).to_s + "#{i}. #{_w.class.to_s}"
24
24
  @drv.switch_to.window(_w)
25
- puts __FILE__ + (__LINE__).to_s + " Title : #{@drv.title.to_s}"
25
+ Scoutui::Logger::LogMgr.instance.debug __FILE__ + (__LINE__).to_s + " Title : #{@drv.title.to_s}"
26
26
  end
27
27
 
28
+ Scoutui::Logger::LogMgr.instance.debug __FILE__ + (__LINE__).to_s + " switched to i #{i} given windowID #{_window_id}";
29
+
28
30
  _rc=true
29
31
  rescue => ex
30
32
  Scoutui::Logger::LogMgr.instance.debug "Error during processing: #{$!}"
@@ -1,3 +1,3 @@
1
1
  module Scoutui
2
- VERSION = "2.0.3.9.pre"
2
+ VERSION = "2.0.3.10.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.9.pre
4
+ version: 2.0.3.10.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Kim
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2016-05-30 00:00:00.000000000 Z
12
+ date: 2016-06-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler