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.
data/lib/watir-webdriver.rb
CHANGED
@@ -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
|
@@ -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
|
|
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:
|
4
|
+
hash: 15
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
9
|
+
- 2
|
10
|
+
version: 0.5.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jari Bakken
|