soda 1.0.7 → 1.0.8

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.
@@ -103,26 +103,33 @@ require 'FieldUtils'
103
103
  # Params:
104
104
  # field: this is the watir object for the field.
105
105
  # value: The vale to set the field to.
106
+ # nonzippy: this turns on zippy text entry.
106
107
  #
107
108
  # Results:
108
109
  # returns 0 on success, or -1 on error
109
110
  #
110
111
  ###############################################################################
111
- def self.set(field, value)
112
+ def self.set(field, value, nonzippy = false)
112
113
  result = 0
113
114
  msg = "Setting Element: "
114
115
 
115
116
  begin
116
117
  tmp = FieldUtils.WatirFieldToStr(field, $curSoda.rep)
117
118
  tmp = "Unknown" if (tmp == nil)
118
- $curSoda.rep.log("#{msg}#{tmp}: Value => '#{value}'.\n")
119
+ tmp_value = "#{value}"
120
+ tmp_value = tmp_value.gsub("\n", '\n')
121
+ $curSoda.rep.log("#{msg}#{tmp}: Value => '#{tmp_value}'.\n")
119
122
 
120
123
  if (!field.enabled?)
121
124
  $curSoda.rep.ReportFailure(
122
125
  "Error: Trying to set a value for a disabled Element!\n")
123
126
  result = -1
124
127
  else
125
- field.set(value)
128
+ if (nonzippy)
129
+ field.set(value)
130
+ else
131
+ field.value = value
132
+ end
126
133
  result = 0
127
134
  end
128
135
  rescue Exception => e
data/lib/sodainfo.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  require 'Soda'
2
2
 
3
- SODA_GEM_VERSION = "1.0.7"
3
+ SODA_GEM_VERSION = "1.0.8"
4
4
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soda
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 7
10
- version: 1.0.7
9
+ - 8
10
+ version: 1.0.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Trampus Richmond
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-11 00:00:00 -08:00
18
+ date: 2011-02-14 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -112,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
112
  requirements: []
113
113
 
114
114
  rubyforge_project: Soda
115
- rubygems_version: 1.4.2
115
+ rubygems_version: 1.5.2
116
116
  signing_key:
117
117
  specification_version: 3
118
118
  summary: SODA is an XML based testing framework leveraging Watir.