testcentricity 3.0.5 → 3.0.6
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 +7 -0
- data/lib/testcentricity/app_elements/app_element_helper.rb +13 -3
- data/lib/testcentricity/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0ce51326d5b5bd311a446fb293120d23429fff0bb4b67a637c4e05377bcd4335
|
|
4
|
+
data.tar.gz: a225e713a5734b898db54d693708964f609cbcf660b3e63832e2ce638222d14d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8a1961921ea74234539f9b236472529c4682cb161f85cb139daea60a6b1ca1318e490a1795c56da6252bc83ee03c544abc6b499f09b94bb697e660f31dfc54c0
|
|
7
|
+
data.tar.gz: b24b5dfc275b53ba69774ba74f4d580615a759d3302f128d47485ea4498d16dcca14e75a041528c7292a7cfe4c677bf273db89db5ba835a08d0113fd00161b04
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
## [3.0.6] - 21-JUNE-2022
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
* `AppButton.get_caption` correctly returns captions of React Native buttons on Android platform where button caption object
|
|
9
|
+
hierarchy is `//android.widget.Button/android.widget.ViewGroup/android.widget.TextView`.
|
|
10
|
+
|
|
11
|
+
|
|
5
12
|
## [3.0.5] - 12-JUNE-2022
|
|
6
13
|
|
|
7
14
|
### Fixed
|
|
@@ -109,9 +109,19 @@ module TestCentricity
|
|
|
109
109
|
end
|
|
110
110
|
else
|
|
111
111
|
caption = obj.text
|
|
112
|
-
if caption.blank?
|
|
113
|
-
|
|
114
|
-
|
|
112
|
+
if caption.blank?
|
|
113
|
+
case obj.attribute(:class)
|
|
114
|
+
when 'android.view.ViewGroup'
|
|
115
|
+
caption_obj = obj.find_element(:xpath, '//android.widget.TextView')
|
|
116
|
+
caption = caption_obj.text
|
|
117
|
+
when 'android.widget.Button'
|
|
118
|
+
caption_obj = obj.find_element(:xpath, '//android.widget.TextView')
|
|
119
|
+
caption = caption_obj.text
|
|
120
|
+
if caption.blank?
|
|
121
|
+
caption_obj = obj.find_element(:xpath, '//android.widget.ViewGroup/android.widget.TextView')
|
|
122
|
+
caption = caption_obj.text
|
|
123
|
+
end
|
|
124
|
+
end
|
|
115
125
|
end
|
|
116
126
|
caption
|
|
117
127
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: testcentricity
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- A.J. Mrozinski
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-06-
|
|
11
|
+
date: 2022-06-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|