Skip to content

Commit 58218e1

Browse files
authored
fix ios page (#866)
* fix ios page * add changelog
1 parent 7f010e7 commit 58218e1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Release tags are https://github.com/appium/ruby_lib/releases .
77
### 1. Enhancements
88

99
### 2. Bug fixes
10+
- Fix iOS `page` in native context
1011

1112
### 3. Deprecations
1213

lib/appium_lib/ios/common/helper.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class UITestElementsPrinter < Nokogiri::XML::SAX::Document
2121
def start_element(type, attrs = [])
2222
return if filter && !filter.eql?(type)
2323

24-
page = attrs.each_with_object({}) do |hash, attr|
24+
page = attrs.each_with_object({}) do |attr, hash|
2525
hash[attr[0]] = attr[1] if %w(name label value hint visible).include?(attr[0])
2626
hash
2727
end

0 commit comments

Comments
 (0)