testcentricity_web 3.0.12 → 3.0.13
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.md +6 -1
- data/lib/testcentricity_web/version.rb +1 -1
- data/lib/testcentricity_web/web_elements/list.rb +5 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6926ed09efd4239466dd1f3f5729b31afbf90ea4
|
4
|
+
data.tar.gz: 3c722b3f23720b54a3c771769ee1b51458047f5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb7f87e16a0afd4fa3fd0d25eece971596ef6d7004436f3423c908d67bd8cc237eb9b46c2efbaa12193ca403a30e19f413217def1b90586d89213c0a46270796
|
7
|
+
data.tar.gz: ba38c1631adc66ec23ed239e02bad242a831802ae26b7e82bce9a55dec25e500b45b16b54440439f1a56138df259e0f21be864cc96354ec2d91d47ed40247a20
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
All notable changes to this project will be documented in this file.
|
3
3
|
|
4
|
-
## [3.0.
|
4
|
+
## [3.0.13] - 2018-08-10
|
5
|
+
|
6
|
+
### Fixed
|
7
|
+
* Improved response times of `List.get_item_count` and `List.get_list_items` methods by shortening `wait` time.
|
8
|
+
|
9
|
+
## [3.0.12] - 2018-08-09
|
5
10
|
### Added
|
6
11
|
* `PageSection.hover` method.
|
7
12
|
* `List.hover_item` method.
|
@@ -38,7 +38,7 @@ module TestCentricity
|
|
38
38
|
obj, = find_element
|
39
39
|
object_not_found_exception(obj, nil)
|
40
40
|
if item.is_a?(Integer)
|
41
|
-
obj.find(:css, "#{@list_item}:nth-of-type(#{item})", visible: true, minimum: 0).click
|
41
|
+
obj.find(:css, "#{@list_item}:nth-of-type(#{item})", visible: true, minimum: 0, wait: 2).click
|
42
42
|
elsif item.is_a?(String)
|
43
43
|
items = obj.all(@list_item).collect(&:text)
|
44
44
|
sleep(2) unless items.include?(item)
|
@@ -57,11 +57,11 @@ module TestCentricity
|
|
57
57
|
obj, = find_element
|
58
58
|
object_not_found_exception(obj, nil)
|
59
59
|
if item.is_a?(Integer)
|
60
|
-
obj.find(:css, "#{@list_item}:nth-of-type(#{item})", visible: true, minimum: 0).hover
|
60
|
+
obj.find(:css, "#{@list_item}:nth-of-type(#{item})", visible: true, minimum: 0, wait: 2).hover
|
61
61
|
elsif item.is_a?(String)
|
62
62
|
items = obj.all(@list_item).collect(&:text)
|
63
63
|
sleep(2) unless items.include?(item)
|
64
|
-
obj.first(:css, @list_item, text: item).hover
|
64
|
+
obj.first(:css, @list_item, text: item, wait: 2).hover
|
65
65
|
end
|
66
66
|
end
|
67
67
|
|
@@ -75,7 +75,7 @@ module TestCentricity
|
|
75
75
|
define_list_elements(element_spec) unless element_spec.nil?
|
76
76
|
obj, = find_element
|
77
77
|
object_not_found_exception(obj, nil)
|
78
|
-
obj.all(@list_item).collect(&:text)
|
78
|
+
obj.all(@list_item, visible: true, minimum: 0, wait: 2).collect(&:text)
|
79
79
|
end
|
80
80
|
|
81
81
|
def get_list_item(index, visible = true)
|
@@ -92,7 +92,7 @@ module TestCentricity
|
|
92
92
|
def get_item_count
|
93
93
|
obj, = find_element
|
94
94
|
object_not_found_exception(obj, nil)
|
95
|
-
obj.all(@list_item).count
|
95
|
+
obj.all(@list_item, visible: true, minimum: 0, wait: 2).count
|
96
96
|
end
|
97
97
|
|
98
98
|
alias item_count get_item_count
|