page-object 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 83096c48419028baf9d916c2f0c6baca18d821df
4
- data.tar.gz: 96c9fac57d4606967a33a73780d638ad246ef3d4
3
+ metadata.gz: d3d2034dbff53c42fded74c511a9a8aa23bd61a9
4
+ data.tar.gz: cc1b2933090ed29a3e985be60cf10a3d5d1c5ea6
5
5
  SHA512:
6
- metadata.gz: dac077be6fe9e3e6a32ebc5357618ad811d6f7702787cceb0741fa9f9e279ee49c9882ee7f611b0260e852e14b1a6c4640e285f9af609ad49ae9156df3000fb3
7
- data.tar.gz: 7e90d74a30d201603688e54779c2779a081b5f57154a1ceb87b623610c261eadf8a3f092ba09487c46039508c02736445792906db1ae49cf68aac719d2e89415
6
+ metadata.gz: 10dd2880b3f32b28f2f3a1e2d6901920c4fd2cc73baee209b2c8535ffd3395c6a0be298e1a46c600c01a5050dc47b8fb188158e740731be319453347ee4c4d62
7
+ data.tar.gz: c5dc09715ec9f42c0e5f95e58c6f2385d6d18ad90c223227cf18e151e205c73c0fbba81250d98be5678bf64243862e809820984b7da41ddd1fed80428d08226e
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ Version 1.2.2 / 2016-11-17
2
+ * Fixes
3
+ * Fixed a bug that was introduced in the latest release
4
+
1
5
  Version 1.2.1 / 2016-11-11
2
6
  * Enhancements
3
7
  * Added numerous missing element types
@@ -946,9 +946,7 @@ module PageObject
946
946
  # See PageObject::Accessors#element
947
947
  #
948
948
  def element_for(tag, identifier)
949
- the_call = "#{tag.to_s}(identifier)"
950
- the_call << ".to_subtype" if tag.to_s == 'element'
951
- find_watir_element(the_call, Elements::Element, identifier, tag.to_s)
949
+ find_watir_element("#{tag.to_s}(identifier)", Elements::Element, identifier, tag.to_s)
952
950
  end
953
951
 
954
952
  #
@@ -956,9 +954,7 @@ module PageObject
956
954
  # See PageObject::Accessors#element
957
955
  #
958
956
  def elements_for(tag, identifier)
959
- the_call = "#{tag.to_s}s(identifier)"
960
- the_call << ".to_subtype" if tag.to_s == 'element'
961
- find_watir_elements(the_call, Elements::Element, identifier, tag.to_s)
957
+ find_watir_elements("#{tag.to_s}s(identifier)", Elements::Element, identifier, tag.to_s)
962
958
  end
963
959
 
964
960
  #
@@ -1042,7 +1038,6 @@ module PageObject
1042
1038
  def find_watir_elements(the_call, type, identifier, tag_name=nil)
1043
1039
  identifier, frame_identifiers = parse_identifiers(identifier, type, tag_name)
1044
1040
  elements = @browser.instance_eval "#{nested_frames(frame_identifiers)}#{the_call}"
1045
- elements.map(&:to_subtype)
1046
1041
  switch_to_default_content(frame_identifiers)
1047
1042
  elements.map { |element| type.new(element, :platform => self.class::PLATFORM_NAME) }
1048
1043
  end
@@ -1050,7 +1045,6 @@ module PageObject
1050
1045
  def find_watir_element(the_call, type, identifier, tag_name=nil)
1051
1046
  identifier, frame_identifiers = parse_identifiers(identifier, type, tag_name)
1052
1047
  element = @browser.instance_eval "#{nested_frames(frame_identifiers)}#{the_call}"
1053
- element = element.to_subtype if element.exists?
1054
1048
  switch_to_default_content(frame_identifiers)
1055
1049
  type.new(element, :platform => self.class::PLATFORM_NAME)
1056
1050
  end
@@ -1,4 +1,4 @@
1
1
  module PageObject
2
2
  # @private
3
- VERSION = "1.2.1"
3
+ VERSION = "1.2.2"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: page-object
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Morgan
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-11-11 00:00:00.000000000 Z
12
+ date: 2016-11-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: watir-webdriver