testcentricity 3.0.5 → 3.0.6

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
  SHA256:
3
- metadata.gz: 4be45cea70bc057c0f1e19cc43110526d6799560e80f0c833d01edf84d178ab5
4
- data.tar.gz: a8cab6531bd2057e86096a87dbbfd0d92d453e4da9b4607c70f1bcedf6dcbc5c
3
+ metadata.gz: 0ce51326d5b5bd311a446fb293120d23429fff0bb4b67a637c4e05377bcd4335
4
+ data.tar.gz: a225e713a5734b898db54d693708964f609cbcf660b3e63832e2ce638222d14d
5
5
  SHA512:
6
- metadata.gz: ac8b2e9626dc495b771dba76d8742e18a907f0721faa715f34c508529cbd41fba7798bec02a164d2d650de772afc1b0ca5042e7932415491b8ba7052f50702a1
7
- data.tar.gz: 51410e60617d58e6494b19c3838e3152a1208e4da4af0f1fd87d770fb112ff46de26bf8450b169e7a184d3b8cfe514976d6000d7ccb2331ac808182f9801fd48
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? && obj.attribute(:class) == 'android.view.ViewGroup'
113
- caption_obj = obj.find_element(:xpath, '//android.widget.TextView')
114
- caption = caption_obj.text
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
@@ -1,3 +1,3 @@
1
1
  module TestCentricity
2
- VERSION = '3.0.5'
2
+ VERSION = '3.0.6'
3
3
  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.5
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-12 00:00:00.000000000 Z
11
+ date: 2022-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler