Skip to content

Instantly share code, notes, and snippets.

@jmoody
Last active December 31, 2015 19:09
Show Gist options
  • Save jmoody/8031917 to your computer and use it in GitHub Desktop.
Save jmoody/8031917 to your computer and use it in GitHub Desktop.
pretty print view marks in calabash iOS
see https://github.com/jmoody/briar/blob/master/lib/briar/irbrc.rb
@jmoody
Copy link
Author

jmoody commented Dec 18, 2013

> ids
 [0]       UINavigationBar => Text Related
 [1]   UIRoundedRectButton => the button
 [2]           UITextField => bottom tf
 [3]           UITextField => top tf
 [4]            UITextView => bottom tv
 [5]            UITextView => top tv
 [6]                UIView => text related

@jmoody
Copy link
Author

jmoody commented Dec 18, 2013

irb(main):048:0> labels
 [0]          UIButtonLabel => Done
 [1]          UIButtonLabel => i am a "button"
 [2]                UILabel => Text Related
 [3]     UINavigationButton => done text editing
 [4]   UINavigationItemView => Text Related
 [5]    UIRoundedRectButton => i am a "button"
 [6]         UITabBarButton => Buttons
 [7]         UITabBarButton => Date
 [8]         UITabBarButton => Sliders
 [9]         UITabBarButton => Tables
[10]         UITabBarButton => Text
[11]    UITabBarButtonLabel => Buttons
[12]    UITabBarButtonLabel => Date
[13]    UITabBarButtonLabel => Sliders
[14]    UITabBarButtonLabel => Tables
[15]    UITabBarButtonLabel => Text
nil

@jmoody
Copy link
Author

jmoody commented Dec 18, 2013

> text
 [0]         UIButtonLabel => Done
 [1]         UIButtonLabel => i am a "button"
 [2]         UIFieldEditor => ,
 [3]               UILabel => Text Related
 [4]   UITabBarButtonLabel => Buttons
 [5]   UITabBarButtonLabel => Date
 [6]   UITabBarButtonLabel => Sliders
 [7]   UITabBarButtonLabel => Tables
 [8]   UITabBarButtonLabel => Text
 [9]           UITextField => ,

@jmoody
Copy link
Author

jmoody commented Dec 18, 2013

> marks 
 [0] al   =>        UIButtonLabel => Done
 [1] text =>        UIButtonLabel => Done
 [2] al   =>        UIButtonLabel => i am a "button"
 [3] text =>        UIButtonLabel => i am a "button"
 [4] text =>        UIFieldEditor => ,
 [5] al   =>              UILabel => Text Related
 [6] text =>              UILabel => Text Related
 [7] ai   =>      UINavigationBar => Text Related
 [8] al   =>   UINavigationButton => done text editing
 [9] al   => UINavigationItemView => Text Related
[10] al   =>  UIRoundedRectButton => i am a "button"
[11] ai   =>  UIRoundedRectButton => the button
[12] al   =>       UITabBarButton => Buttons
[13] al   =>       UITabBarButton => Date
[14] al   =>       UITabBarButton => Sliders
[15] al   =>       UITabBarButton => Tables
[16] al   =>       UITabBarButton => Text
[17] al   =>  UITabBarButtonLabel => Buttons
[18] text =>  UITabBarButtonLabel => Buttons
[19] al   =>  UITabBarButtonLabel => Date
[20] text =>  UITabBarButtonLabel => Date
[21] al   =>  UITabBarButtonLabel => Sliders
[22] text =>  UITabBarButtonLabel => Sliders
[23] al   =>  UITabBarButtonLabel => Tables
[24] text =>  UITabBarButtonLabel => Tables
[25] al   =>  UITabBarButtonLabel => Text
[26] text =>  UITabBarButtonLabel => Text
[27] text =>          UITextField => ,
[28] ai   =>          UITextField => bottom tf
[29] ai   =>          UITextField => top tf
[30] ai   =>           UITextView => bottom tv
[31] ai   =>           UITextView => top tv
[32] ai   =>               UIView => text related
nil

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment