watir-webdriver 0.2.4 → 0.2.5

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.
@@ -13,9 +13,7 @@ module Watir
13
13
 
14
14
  def select
15
15
  assert_exists
16
-
17
- @element.select
18
- fire_event("onclick") rescue nil
16
+ @element.click
19
17
  end
20
18
 
21
19
  #
@@ -24,7 +22,7 @@ module Watir
24
22
 
25
23
  def toggle
26
24
  assert_exists
27
- @element.toggle
25
+ @element.click
28
26
  end
29
27
 
30
28
  #
@@ -23,7 +23,7 @@ module Watir
23
23
  raise Error, "you can only clear multi-selects" unless multiple?
24
24
 
25
25
  options.each do |o|
26
- o.toggle if o.selected?
26
+ o.click if o.selected?
27
27
  end
28
28
  end
29
29
 
@@ -141,7 +141,7 @@ module Watir
141
141
  elements = @element.find_elements(:xpath, xpath)
142
142
  no_value_found(string) if elements.empty?
143
143
 
144
- elements.each { |e| e.select unless e.selected? }
144
+ elements.each { |e| e.click unless e.selected? }
145
145
  elements.first.text
146
146
  else
147
147
  begin
@@ -150,7 +150,7 @@ module Watir
150
150
  no_value_found(string)
151
151
  end
152
152
 
153
- e.select unless e.selected?
153
+ e.click unless e.selected?
154
154
 
155
155
  safe_text(e)
156
156
  end
@@ -163,7 +163,7 @@ module Watir
163
163
  if multiple?
164
164
  found = elements.select do |e|
165
165
  next unless matches_regexp?(how, e, exp)
166
- e.select unless e.selected?
166
+ e.click unless e.selected?
167
167
  true
168
168
  end
169
169
 
@@ -174,7 +174,7 @@ module Watir
174
174
  element = elements.find { |e| matches_regexp?(how, e, exp) }
175
175
  no_value_found(exp) unless element
176
176
 
177
- element.select unless element.selected?
177
+ element.click unless element.selected?
178
178
 
179
179
  safe_text(element)
180
180
  end
@@ -1,3 +1,3 @@
1
1
  module Watir
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
19
19
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
20
  s.require_paths = ["lib"]
21
21
 
22
- s.add_dependency "selenium-webdriver", '>= 0.2.1'
22
+ s.add_dependency "selenium-webdriver", '>= 0.2.2'
23
23
 
24
24
  s.add_development_dependency "rspec", "~> 2.3.0"
25
25
  s.add_development_dependency "yard", "~> 0.6"
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: watir-webdriver
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.4
5
+ version: 0.2.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jari Bakken
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-06-01 00:00:00 Z
13
+ date: 2011-06-22 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: selenium-webdriver
@@ -20,7 +20,7 @@ dependencies:
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: 0.2.1
23
+ version: 0.2.2
24
24
  type: :runtime
25
25
  version_requirements: *id001
26
26
  - !ruby/object:Gem::Dependency
@@ -194,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
194
194
  requirements: []
195
195
 
196
196
  rubyforge_project: watir-webdriver
197
- rubygems_version: 1.8.2
197
+ rubygems_version: 1.8.5
198
198
  signing_key:
199
199
  specification_version: 3
200
200
  summary: Watir on WebDriver