Posts

Showing posts with the label commands

To know all devices connected to machines / simulator information on mac machine

Image
Open the terminal type following command: $ instruments -s deivces Known Devices: mobileQA’s Mac mini [303FD57A-BA31-5AF8-BBC4-85D1F3FF38A3] Resizable iPad (8.0 Simulator) [5C7AFC61-6B75-49DE-9B28-4CCD125A1F24] Resizable iPhone (8.0 Simulator) [D88F397A-98B4-4CE7-A625-230A56730086] iPad 2 (7.0.3 Simulator) [C2C72D3E-147C-4796-90DD-682E4DBD469E] iPad 2 (7.1 Simulator) [696557BE-7723-49A3-ADA6-46090B2576FB] iPad 2 (8.0 Simulator) [3395DD16-17E6-4A69-BAB2-D7414759E04B] iPad Air (7.0.3 Simulator) [1432341A-C3DD-47B8-95D4-5F17C08BF4A7] iPad Air (7.1 Simulator) [14C9A977-4D56-404A-897F-F5DE8F5F7208] iPad Air (8.0 Simulator) [F92E44D9-8E3F-43D2-9124-00C688126AED] iPad Retina (7.0.3 Simulator) [4FFA8E0D-290A-47BB-B7D6-806641AFAEF7] iPad Retina (7.1 Simulator) [76F3CC43-0E3A-4ADD-9520-AA1E20F8DD71] iPad Retina (8.0 Simulator) [DC9C5DFA-988B-40A5-8E81-3F3FB0D11043]  

Mac terminal cursor commands

Image
·          Meta-d to delete a word starting from the current cursor position ·          Ctrl-a  to jump to start of the line ·          Ctrl-e  to jump to end of the line ·          Ctrl-k  to kill the line starting from the cursor position ·          Ctrl-y  to paste text from the kill buffer ·          Ctrl-r  to reverse search for commands you typed in the past from your history ·          Ctrl-s  to forward search (works in zsh for me but not bash) ·          Ctrl-f  to move forward by a char ·          Ctrl-b  to move backward by a char

Calabash-iOS commands

irb(main):021:0> query("label all",:text) [     [ 0] "Home" ,     [ 1] "Pull down to refresh" ,     [ 2] "FTSE" ,     [ 3] "6739.27*" ,     [ 4] "+0.14%" ,     [ 5] "+9.48" ,     [ 6] "DAX" , ] irb(main):023:0>  query("button index:0").first.keys [     [0] "selected" ,     [1] "enabled" ,     [2] "rect" ,     [3] "id" ,     [4] "description" ,     [5] "label" ,     [6] "alpha" ,     [7] "class" ,     [8] "frame" ] irb(main):024:0>  query("button index:0").first.values [     [0] false ,     [1] true ,     [2] {         "center_x" => 25 ,                "y" => 26 ,            "width" => 20 ,        ...