Search code examples
iosautomated-testscalabashpageobjects

Best way to identify objects using Calabash on iOS


I know calabash comes with the included irb functionality that allows you to query objects on the page. However, this seems quite cumbersome.

Appium comes with a fantastic out of the box app that allows you to easily identify the details of objects on the page.

Does anyone know of an equivalent tool that can be used with Calabash?


Solution

  • UPDATE

    Calabash 0.19.0 added several console methods to help with discovering elements in an app's view hierarchy.

       ids => List all the visible accessibility ids.
    labels => List all the visible accessibility labels.
      text => List all the visible texts.
     marks => List all the visible marks.
      tree => The app's visible view hierarchy.
     flash => flash(<query>); Disco effect for views matching <query>
    

    Reveal is good option.

    Calabash 2.0 has the tree console command which could be ported to Calabash iOS 0.x.

    There are also these useful methods in briar/irbrc