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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 581f39c253c65fff0b56a14aeba3aadfc08e787a
4
- data.tar.gz: 491f1a5fa80b9d7fd09a91ff4f4f226ce4ad99df
3
+ metadata.gz: 527f1f2733f22189ec8c9c60df25ef1bdd5dcc07
4
+ data.tar.gz: 7b4038b15f762a0fa0514ba1a2fa73feccd9f7c4
5
5
  SHA512:
6
- metadata.gz: e7b691217037929862031144decdc1cc042392a6fbb0b84c80bc5659b02c74a381050f35cd9a8eef8885658150cb471012bc68a3f200bde0ab6349a45741652e
7
- data.tar.gz: e8b76ed7ddd9fc00004211cd9961e5af3b8406ba1c14d3919b12db93b2f4bd4b35ce8ba72137fad57f4319b2be195dcea12af8482cad394fda978677923c4941
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
- drv.switch_to.frame _tag
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
@@ -100,6 +100,8 @@ module Scoutui::Base
100
100
 
101
101
  end
102
102
 
103
+ elsif @globals.has_key?(k)
104
+ foundKey=true
103
105
  else
104
106
  foundKey=false
105
107
  end
@@ -60,9 +60,11 @@ module Scoutui::Commands
60
60
  _rc=true
61
61
  _isKb=true
62
62
  else
63
- _xpath = @cmd.match(/^\s*type[\!]*\((.*),\s*/)[1].to_s
64
- _val = @cmd.match(/^\s*type[\!]*\(.*,\s*(.*)\)/)[1].to_s
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
- obj.send_keys(Scoutui::Base::UserVars.instance.get(_val))
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
 
@@ -1,3 +1,3 @@
1
1
  module Scoutui
2
- VERSION = "2.0.3.2.pre"
2
+ VERSION = "2.0.3.4.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.2.pre
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-03 00:00:00.000000000 Z
12
+ date: 2016-05-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler