watir-webdriver 0.5.1 → 0.5.2

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.
@@ -18,8 +18,6 @@ require 'watir-webdriver/locators/child_cell_locator'
18
18
  require 'watir-webdriver/browser'
19
19
 
20
20
  module Watir
21
- include Selenium
22
-
23
21
  @always_locate = true
24
22
 
25
23
  class << self
@@ -185,7 +185,7 @@ module Watir
185
185
 
186
186
  def wrap_elements_in(obj)
187
187
  case obj
188
- when WebDriver::Element
188
+ when Selenium::WebDriver::Element
189
189
  wrap_element(obj)
190
190
  when Array
191
191
  obj.map { |e| wrap_elements_in(e) }
@@ -11,7 +11,6 @@ module Watir
11
11
 
12
12
  include Exception
13
13
  include Container
14
- include Selenium
15
14
  include EventuallyPresent
16
15
 
17
16
  #
@@ -206,7 +205,7 @@ module Watir
206
205
 
207
206
  begin
208
207
  @element.attribute('value') || ''
209
- rescue WebDriver::Error::InvalidElementStateError
208
+ rescue Selenium::WebDriver::Error::InvalidElementStateError
210
209
  ""
211
210
  end
212
211
  end
@@ -254,7 +253,7 @@ module Watir
254
253
 
255
254
  e = execute_atom :getParentElement, @element
256
255
 
257
- if e.kind_of?(WebDriver::Element)
256
+ if e.kind_of?(Selenium::WebDriver::Element)
258
257
  Watir.element_class_for(e.tag_name.downcase).new(@parent, :element => e)
259
258
  end
260
259
  end
@@ -408,7 +407,7 @@ module Watir
408
407
  end
409
408
 
410
409
  def assert_has_input_devices_for(name)
411
- unless driver.kind_of? WebDriver::DriverExtensions::HasInputDevices
410
+ unless driver.kind_of? Selenium::WebDriver::DriverExtensions::HasInputDevices
412
411
  raise NotImplementedError, "#{self.class}##{name} is not supported by this driver"
413
412
  end
414
413
  end
@@ -146,7 +146,7 @@ module Watir
146
146
  else
147
147
  begin
148
148
  e = @element.find_element(:xpath, xpath)
149
- rescue WebDriver::Error::NoSuchElementError
149
+ rescue Selenium::WebDriver::Error::NoSuchElementError
150
150
  no_value_found(string)
151
151
  end
152
152
 
@@ -2,7 +2,6 @@
2
2
  module Watir
3
3
  class ElementLocator
4
4
  include Watir::Exception
5
- include Selenium
6
5
 
7
6
  WD_FINDERS = [
8
7
  :class,
@@ -36,7 +35,7 @@ module Watir
36
35
  # this actually only applies when finding by xpath - browser.text_field(:xpath, "//input[@type='radio']")
37
36
  # we don't need to validate the element if we built the xpath ourselves.
38
37
  validate_element(element) if element
39
- rescue WebDriver::Error::NoSuchElementError => wde
38
+ rescue Selenium::WebDriver::Error::NoSuchElementError => wde
40
39
  nil
41
40
  end
42
41
 
@@ -245,7 +244,7 @@ module Watir
245
244
  return if tag_name && !tag_name_matches?(element.tag_name.downcase, tag_name)
246
245
 
247
246
  element
248
- rescue WebDriver::Error::NoSuchElementError => wde
247
+ rescue Selenium::WebDriver::Error::NoSuchElementError => wde
249
248
  nil
250
249
  end
251
250
 
@@ -1,3 +1,3 @@
1
1
  module Watir
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: watir-webdriver
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 1
10
- version: 0.5.1
9
+ - 2
10
+ version: 0.5.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jari Bakken