mykola-mokhnach / Appium-iOS-Inspector

Apache License 2.0
145 stars 60 forks source link

Question: Way to get the full AppiumAUT XML tree? #2

Closed lambourn closed 7 years ago

lambourn commented 7 years ago

Is there a way to get the full XML tree of the current AppiumAUT object?

Reason is that I'd like to paste the XML tree into an editor so I can play around with the XPath (in addition to what's already in the inspector in terms of the XPath Helper)

The XML is loaded anyway so there should be an easy way to get a handle to it, right?

mykola-mokhnach commented 7 years ago

Unfortunately, there is no such possibility in the current build, but I can add it if needed

lambourn commented 7 years ago

that would be cool. I noticed that the raw XML gets stored in Inspector.prototype.onTreeLoaded on the Inspector object's xml property already so it could be grabbed from there.

mykola-mokhnach commented 7 years ago

@lambourn I have just added the "Copy XML To Clipboard" button and pushed the changes to master. Enjoy!

lambourn commented 7 years ago

Sweet!