page-object 1.2.1 → 1.2.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.
- checksums.yaml +4 -4
- data/ChangeLog +4 -0
- data/lib/page-object/platforms/watir_webdriver/page_object.rb +2 -8
- data/lib/page-object/version.rb +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: d3d2034dbff53c42fded74c511a9a8aa23bd61a9
|
4
|
+
data.tar.gz: cc1b2933090ed29a3e985be60cf10a3d5d1c5ea6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10dd2880b3f32b28f2f3a1e2d6901920c4fd2cc73baee209b2c8535ffd3395c6a0be298e1a46c600c01a5050dc47b8fb188158e740731be319453347ee4c4d62
|
7
|
+
data.tar.gz: c5dc09715ec9f42c0e5f95e58c6f2385d6d18ad90c223227cf18e151e205c73c0fbba81250d98be5678bf64243862e809820984b7da41ddd1fed80428d08226e
|
data/ChangeLog
CHANGED
@@ -946,9 +946,7 @@ module PageObject
|
|
946
946
|
# See PageObject::Accessors#element
|
947
947
|
#
|
948
948
|
def element_for(tag, identifier)
|
949
|
-
|
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
|
-
|
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
|
data/lib/page-object/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2016-11-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: watir-webdriver
|