We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2bb509f commit 62c977aCopy full SHA for 62c977a
lib/appium_lib/ios/helper.rb
@@ -143,6 +143,10 @@ def page window_number = -1
143
# @param window_number [Integer] the int index of the target window
144
# @return [JSON]
145
def source_window window_number=0
146
+ # appium 1.0 still returns JSON when getTree() is invoked so this
147
+ # doesn't need to change to XML. If getTree() is removed then
148
+ # source_window will need to parse the results of getTreeForXML()\
149
+ # https://github.com/appium/appium-uiauto/blob/247eb71383fa1a087ff8f8fc96fac25025731f3f/uiauto/appium/element.js#L145
150
execute_script "UIATarget.localTarget().frontMostApp().windows()[#{window_number}].getTree()"
151
end
152
0 commit comments