scoutui 2.0.3.2.pre → 2.0.3.4.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/scoutui/base/q_browser.rb +7 -1
- data/lib/scoutui/base/user_vars.rb +2 -0
- data/lib/scoutui/commands/type.rb +23 -3
- data/lib/scoutui/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 527f1f2733f22189ec8c9c60df25ef1bdd5dcc07
|
4
|
+
data.tar.gz: 7b4038b15f762a0fa0514ba1a2fa73feccd9f7c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b616c6f713ee98f9707f86aece0f819ca94dff25b0b9ea056746ec771d172932ee82fb5a84df5b224192fc739526e507ed412d92ad99f7f978d6592053e37220
|
7
|
+
data.tar.gz: e0ffad4cdbfcd7dfa7f8a37e9eaadbe2b5d15dc9cc2febe92d768f414d0e076075909f9f22a9c090e0ecac0bc958f1d9ceb9ca36caab9d44de1a5ea1069ff081
|
@@ -187,7 +187,13 @@ module Scoutui::Base
|
|
187
187
|
|
188
188
|
Scoutui::Logger::LogMgr.instance.debug __FILE__ + (__LINE__).to_s + " Process frame[#{i}] : #{_tag}"
|
189
189
|
|
190
|
-
|
190
|
+
# https://bugs.chromium.org/p/chromedriver/issues/detail?id=107
|
191
|
+
if drv.browser.to_s.match(/chrome/)
|
192
|
+
drv.switch_to.frame frames[i]
|
193
|
+
else
|
194
|
+
drv.switch_to.frame _tag
|
195
|
+
end
|
196
|
+
|
191
197
|
|
192
198
|
_hits = frame_getObject(drv, _locator, 3)
|
193
199
|
rescue => ex
|
@@ -60,9 +60,11 @@ module Scoutui::Commands
|
|
60
60
|
_rc=true
|
61
61
|
_isKb=true
|
62
62
|
else
|
63
|
-
|
64
|
-
|
63
|
+
# _xpath = @cmd.match(/^\s*type[\!]*\((.*),\s*/)[1].to_s
|
64
|
+
_xpath = @cmd.match(/^\s*type[\!]*\(([^,]*),\s*/)[1].to_s
|
65
65
|
|
66
|
+
# _val = @cmd.match(/^\s*type[\!]*\(.*,\s*(.*)\)/)[1].to_s
|
67
|
+
_val = @cmd.match(/^\s*type[\!]*\([^,]*,\s*(.*)\)/)[1].to_s
|
66
68
|
|
67
69
|
Scoutui::Logger::LogMgr.instance.commands.debug __FILE__ + (__LINE__).to_s + "Process TYPE #{_val} into #{_xpath}"
|
68
70
|
|
@@ -98,7 +100,25 @@ module Scoutui::Commands
|
|
98
100
|
obj.send_keys(:tab)
|
99
101
|
else
|
100
102
|
|
101
|
-
|
103
|
+
_uservars = _val.scan(/\$\{(.*?)\}/)
|
104
|
+
|
105
|
+
|
106
|
+
_v2 = _val
|
107
|
+
for i in 0 .. (_uservars.size - 1)
|
108
|
+
|
109
|
+
|
110
|
+
_t = Scoutui::Base::UserVars.instance.get(_uservars[i][0])
|
111
|
+
puts __FILE__ + (__LINE__).to_s + " translate(#{_uservars[i][0]}) => #{_t}"
|
112
|
+
|
113
|
+
if !_t.nil? && _uservars[i][0]!=_t
|
114
|
+
_v2.gsub!("\$\{#{_uservars[i][0]}\}", _t)
|
115
|
+
end
|
116
|
+
|
117
|
+
puts __FILE__ + (__LINE__).to_s + " value => #{_v2}"
|
118
|
+
|
119
|
+
end
|
120
|
+
|
121
|
+
obj.send_keys(Scoutui::Base::UserVars.instance.get(_v2))
|
102
122
|
end
|
103
123
|
|
104
124
|
|
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.4.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-
|
12
|
+
date: 2016-05-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|