user2073224
user2073224

Reputation: 51

How can I inspect elements on native iOS application

I am running an iOS native app on iOS Simulator and would like to inspect the elements on the app to get the ID.

Does anyone knows how this can be done?

Note: Please, this question is for iOS native App not Web based app!

Thanks

Upvotes: 5

Views: 27986

Answers (5)

Hanendra
Hanendra

Reputation: 31

There are two Best ways for this -

  1. Use Accessibility Inspector which is Apples's inbuilt tool so you don't need any other support .

  2. As you will be using Xcode mostly for you code part, there is an option to play UI recording which capture all the actions and elements that you interact with on native app.

Upvotes: 0

Cesargv
Cesargv

Reputation: 29

Appium has an inspector for ios applications. This is the link for appium: http://appium.io/ and in this video you can see the inspector in action: https://www.youtube.com/watch?v=jQZTRz2W9xg

Upvotes: -1

Natan R.
Natan R.

Reputation: 5181

There is a new app, called Reveal, that does an incredible job. Not only you can check view's properties, you can also view all the app in a "exploded" 3D view, change the sizes and properties. Specially for iOS 7, where the view controller starts from the beginning of the screen (and not below the navigation bar), it can be really useful.

You can download the trial at http://revealapp.com and decide which license you should get.

Upvotes: 0

Ben Gotow
Ben Gotow

Reputation: 14894

It sounds like you may be looking for something like Firebug or the Chrome Inspector for your native app? I'm not sure what you mean by "ID". Interface elements in iOS don't really have IDs the same way DOM elements have IDs.

You should check out the Spark Inspector (http://www.sparkinspector.com/), which allows you to see the views of your app and modify them at runtime - it may help you see what you're looking for. Full disclosure: I am the author of the app ;-)

Upvotes: 8

CStreel
CStreel

Reputation: 2642

You need to inspect the App's Bundle.

Check this answer on stackoverflow, to get the appID: https://stackoverflow.com/a/8883166/933887

Upvotes: -1

Related Questions