IPAD must-haves. And fun-to-haves.

Brighten your iPad with a colorful cover, stream to your TV, download pictures from your digital camera, and more. There’s already so much you can do with iPad and iPad mini

Apple Wireless Keyboard

The incredibly thin Apple Wireless Keyboard uses Bluetooth technology, which makes it compatible with iPad

Apple unveils iPad mini: ‘Thin as a pencil, light as paper’

iPad inspires creativity and hands-on learning with features you won’t find in any other educational tool

Lightning connector and FaceTime HD camera

Apple announces 4th generation iPad packing an A6X CPU

Pages

Showing posts with label return. Show all posts
Showing posts with label return. Show all posts

Saturday, February 23, 2013

Apple Instruments UIAutomation --> How to return element type from search?

Hello All,

 

Does anyone know how to get the element type after a search?

 

For instance, have a look at the code below:

 

var element = UIATarget.localTarget().frontMostApp().mainWindow().elements().withName("Test Element");

 

Now "element" is the UIAElement that has the name "Test Element".

 

I want to find out whether the element is a button or a staticText or a segmentedControl or name of the view or whatever it may be. How to go about this? Help very much appreciated.


View the original article here