safariwatir 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/safariwatir.rb +1 -0
  2. data/safariwatir/scripter.rb +1 -0
  3. metadata +2 -2
data/safariwatir.rb CHANGED
@@ -293,6 +293,7 @@ module Watir
293
293
 
294
294
  class TextField < InputElement
295
295
  def set(value)
296
+ value = value.to_s
296
297
  @scripter.focus(self)
297
298
  @scripter.highlight(self) do
298
299
  clear_text_input
@@ -185,6 +185,7 @@ for (var i = 0; i < element.options.length; i++) {
185
185
  if (selected == -1) {
186
186
  return '#{ELEMENT_NOT_FOUND}';
187
187
  } else if (previous_selection != selected) {
188
+ element.selectedIndex = selected;
188
189
  dispatchOnChange(element.options[selected]);
189
190
  }
190
191
  |
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.2
3
3
  specification_version: 1
4
4
  name: safariwatir
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.2.4
7
- date: 2007-06-21 00:00:00 -05:00
6
+ version: 0.2.5
7
+ date: 2007-07-03 00:00:00 -05:00
8
8
  summary: Automated testing tool for web applications.
9
9
  require_paths:
10
10
  - .