watir 6.4.0 → 6.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +4 -0
- data/lib/watir/elements/element.rb +9 -14
- data/watir.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad0a6fc9300fe5f8ded1b8b8feb759c5d4743464
|
4
|
+
data.tar.gz: 46e6ac2e96f1d72776a8b9248aaad15006fc42cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 479a6187261f32ef39578adad23b9e7165a765647a425df955e533ee588ea84438aa3a5583f9524bb805b3f88486457ea0f41b2f3ff6a10fe9a65ea463c6045f
|
7
|
+
data.tar.gz: e5c7989acf9dfa00b19c81f996a1278178cc31f5e355a4dc82e26b00cfcbbbac7c30a14854450f9b80c52e665d81ecebd49ae96234662a70a2dc4589568cf416
|
data/CHANGES.md
CHANGED
@@ -433,13 +433,9 @@ module Watir
|
|
433
433
|
#
|
434
434
|
|
435
435
|
def to_subtype
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
klass = nil
|
440
|
-
|
441
|
-
if tag_name == "input"
|
442
|
-
klass = case elem.attribute(:type)
|
436
|
+
tag = tag_name()
|
437
|
+
klass = if tag == "input"
|
438
|
+
case attribute_value(:type)
|
443
439
|
when *Button::VALID_TYPES
|
444
440
|
Button
|
445
441
|
when 'checkbox'
|
@@ -451,11 +447,11 @@ module Watir
|
|
451
447
|
else
|
452
448
|
TextField
|
453
449
|
end
|
454
|
-
|
455
|
-
|
456
|
-
|
450
|
+
else
|
451
|
+
Watir.element_class_for(tag)
|
452
|
+
end
|
457
453
|
|
458
|
-
klass.new(@query_scope, element:
|
454
|
+
klass.new(@query_scope, element: wd)
|
459
455
|
end
|
460
456
|
|
461
457
|
#
|
@@ -570,9 +566,8 @@ module Watir
|
|
570
566
|
end
|
571
567
|
|
572
568
|
def assert_element_found
|
573
|
-
|
574
|
-
|
575
|
-
end
|
569
|
+
return if @element
|
570
|
+
raise unknown_exception, "unable to locate element: #{inspect}"
|
576
571
|
end
|
577
572
|
|
578
573
|
def locate
|
data/watir.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: watir
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.4.
|
4
|
+
version: 6.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Rodionov
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-07-
|
12
|
+
date: 2017-07-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: selenium-webdriver
|