appium_failure_helper 1.8.0 → 1.8.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 84d9c1d86ddb0c8f4295a4b269abf43e164846b91a95e0b1fd1e91a250178b96
4
- data.tar.gz: a1aaedfc484964de3293178a24fe3fe9f88fcbdf7d50639f2674c99c1a11731b
3
+ metadata.gz: 5fe4f4dcf579db89e79b789c9915b51adab896a9d9586220d0162d65ddbba55c
4
+ data.tar.gz: b988c6bbd9571393c371449804e4b37b1b5962273dfd275a1d703324734cb8d5
5
5
  SHA512:
6
- metadata.gz: 74644f3dcb9591732aec1dc65e0dc7a249067a8146c5c481830d1b595f4d3d35fc29397c884ca5d938f04eb33cff8c8eaf335cf5a580769f848e3d1ed1f17552
7
- data.tar.gz: b1fc2924f15adb1d645174b7b1bf6b1627b1943434f5a40d5bd3c53535b4ec9cfc6f73240654c06526038d8987ddae8531572294823b43b6a158de804d9363aa
6
+ metadata.gz: 9e34cabdb17a71b586374f5aca2e086dd0bf060eb56ad250d3594fc2c5d02bf4594d2648d356564027997f66f230dcf2a48ee7bb4ffe0fc362798baac3ef13f9
7
+ data.tar.gz: 39435fd489a0fc28719499533d372b46a60b82bdd4df202c9fa84054172bd89ea3a8c9f0920d26c327dedd04bb225d8d10dcd278548d7c2c1732026d0d9d2238
@@ -1,3 +1,3 @@
1
1
  module AppiumFailureHelper
2
- VERSION = "1.8.0"
2
+ VERSION = "1.8.1"
3
3
  end
@@ -48,8 +48,8 @@ module AppiumFailureHelper
48
48
  parent = node.parent
49
49
  return unless parent && parent.name != 'hierarchy'
50
50
 
51
- parent_attrs = parent.attribute.transform_values(&:value) || {}
52
-
51
+ parent_attrs = parent.respond_to?(:attributes) ? parent.attributes.transform_values(&:value) : {}
52
+
53
53
  if (id = parent_attrs['resource-id']) && !id.empty?
54
54
  strategies << { name: "Filho de Pai com ID", strategy: 'xpath', locator: "//*[@resource-id='#{id}']//#{tag}", reliability: :alta }
55
55
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appium_failure_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.0
4
+ version: 1.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Nascimento