Different ways to capture object properties using appium in Android and ios

Hi,

I am new to appium, Please suggest different ways to capture object properties using appium in Android and ios

Hi,

Android platform:

  1. UIAutomator Viewer - This is an inbuilt tool provided by android to spy the objects on both native and hybrid applications.
  2. Adb plugin for Chrome - This is a chrome plugin helps to spy the objects on web applications. To download link
    3)Inspector - This is available in appium GUI

iOS platform:
1)Inspector - This is available in appium GUI. It helps to spy the objects on both native and hybrid applications not on web apps. For more details link
2) Instrumentation - I don’t have much idea on this.

Thanks,
Sharath N

Hi Sharath,

Thanks a lot for your inputs.

If my one object is dynamic, I am not able to fetch properties of whole screen using UIAutomator Viewer. Can you please suggest out of above, which one can be used for same in both IOS and Android?

You can go with appium Inspector which supports both the platforms. Also it has recording feature, which helps to develop the scripts in a faster way.

Thanks
Sharath N

Hi Sharath,

Can you please explain me how to use Inspector?
When I have opened the Inspector window, it is not showing any device.

I am not able to attach screenshot here for reference.

1)Connect your device to a system.
2)Launch appium GUI server
3)Provide app package , app activity of AUT(Application Under Test) for android apps. For iOS apps provide app Path
4)Also provide the desired capabilities of your test device
5)Click on appium Inspector(Search symbol on GUI). Below screen will appear.


6)Select the objects in the left pane and observe that corresponding element has been highlighted with red background.

NOTE: You can spy only one device at one time.
For steps 3 and 4, Select the corresponding platform to set the desired capabilities.(iOS or Android platform symbols on GUI)

Thanks,
Sharath N

1 Like

Hi Sharath,

Thanks a lot. Inspector is working fine with few issues.
My Inspector screen is different than yours, maybe due to version difference. My appium version is 1.4.16.1

Issue I am facing using inspector is that, Image to click to get popup screen (appears from Left menu), is not getting clicked using Inspector.
It only recognizes object.
Please suggest.

Hi,
I have come across one application whose objects are not fetched using any of the above process on Android.

Whole application is recognised as Web view

Please help me how to automate such applications.