watir 6.4.0 → 6.4.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4f79d43eada49a8eae0fbac06b40a6553c235b6d
4
- data.tar.gz: dee9ede27333292aecfa54202a03a04c239545e9
3
+ metadata.gz: ad0a6fc9300fe5f8ded1b8b8feb759c5d4743464
4
+ data.tar.gz: 46e6ac2e96f1d72776a8b9248aaad15006fc42cb
5
5
  SHA512:
6
- metadata.gz: 49cd475ae8aa610d5f5a7a903bc03ad12d065b20c114a779fcc65baf9fe68db0e7722c2742c93b6febcaaef7506d6dd4d3db141c66370fc50d6e246b840db7c9
7
- data.tar.gz: 77d9f6868908147f7b3039477dd12fb5315190b6bf8dfb2ff32293cad6188167566b506ac00dc3ebf87ab5d804950fa341497e2b3ba0521cab4c0bb9d14ee47a
6
+ metadata.gz: 479a6187261f32ef39578adad23b9e7165a765647a425df955e533ee588ea84438aa3a5583f9524bb805b3f88486457ea0f41b2f3ff6a10fe9a65ea463c6045f
7
+ data.tar.gz: e5c7989acf9dfa00b19c81f996a1278178cc31f5e355a4dc82e26b00cfcbbbac7c30a14854450f9b80c52e665d81ecebd49ae96234662a70a2dc4589568cf416
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 6.4.1 (2017-07-13)
2
+
3
+ * Fix bug with stale element errors from ElementCollection (#571)
4
+
1
5
  ### 6.4.0 (2017-07-11)
2
6
 
3
7
  * Significant performance updates
@@ -433,13 +433,9 @@ module Watir
433
433
  #
434
434
 
435
435
  def to_subtype
436
- elem = wd()
437
- tag_name = elem.tag_name.downcase
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
- else
455
- klass = Watir.element_class_for(tag_name)
456
- end
450
+ else
451
+ Watir.element_class_for(tag)
452
+ end
457
453
 
458
- klass.new(@query_scope, element: elem)
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
- unless @element
574
- raise unknown_exception, "unable to locate element: #{inspect}"
575
- end
569
+ return if @element
570
+ raise unknown_exception, "unable to locate element: #{inspect}"
576
571
  end
577
572
 
578
573
  def locate
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'watir'
5
- s.version = '6.4.0'
5
+ s.version = '6.4.1'
6
6
  s.platform = Gem::Platform::RUBY
7
7
  s.authors = ['Alex Rodionov', 'Titus Fortner']
8
8
  s.email = ['p0deje@gmail.com', 'titusfortner@gmail.com']
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.0
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-11 00:00:00.000000000 Z
12
+ date: 2017-07-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: selenium-webdriver