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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 379433019af138d9d6f2a5e962b37587d46d7688
|
4
|
+
data.tar.gz: dc223324d2a989f448d67d1f8bd9869b60b6cd20
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 = {:
|
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
|
-
|
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
|
-
|
19
|
-
|
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
|
-
|
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: #{$!}"
|
data/lib/scoutui/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2016-06-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|