Last active
January 3, 2016 08:09
-
-
Save crmitchelmore/8434163 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[10:38:57]chrismbp barpass-iphone-v2/ [calabash2]$ DEBUG=1 CALABASH_FULL_CONSOLE_OUTPUT=1 calabash-ios console | |
Running irb... | |
irb(main):001:0> start_test_server_in_background | |
...... | |
irb(main):002:0> query("tableViewCell {text LIKE 'Stella Artois Bottle '}") | |
[] | |
irb(main):003:0> swipe("left", {:query => "tableViewCell {text LIKE 'Stella Artois Bottle '"}) | |
Sending UIA command | |
uia.swipeOffset('{:x 160, :y 97}', '{:query "tableViewCell {text LIKE \'Stella Artois Bottle \'", :direction :left}') | |
Result | |
{"status"=>"success", "value"=>":nil", "index"=>0} | |
[ | |
[0] { | |
"class" => "BPLineItemCell", | |
"id" => nil, | |
"rect" => { | |
"center_x" => 160, | |
"y" => 72, | |
"width" => 320, | |
"x" => 0, | |
"center_y" => 97, | |
"height" => 50 | |
}, | |
"frame" => { | |
"y" => 0, | |
"width" => 320, | |
"x" => 0, | |
"height" => 50 | |
}, | |
"label" => nil, | |
"description" => "<BPLineItemCell: 0xd5e40a0; baseClass = UITableViewCell; frame = (0 0; 320 50); autoresize = W; layer = <CALayer: 0xd5e4260>>" | |
} | |
] | |
irb(main):006:0> query("tableViewCell descendant view {text LIKE 'Stella Artois Bottle '}") | |
[ | |
[0] { | |
"class" => "BPLabel", | |
"id" => nil, | |
"rect" => { | |
"center_x" => 178, | |
"y" => 80, | |
"width" => 244, | |
"x" => 56, | |
"center_y" => 89, | |
"height" => 18 | |
}, | |
"frame" => { | |
"y" => 6, | |
"width" => 244, | |
"x" => 10, | |
"height" => 18 | |
}, | |
"label" => "Stella Artois Bottle ", | |
"description" => "<BPLabel: 0xd5e4410; baseClass = UILabel; frame = (10 6; 244 18); text = 'Stella Artois Bottle '; clipsToBounds = YES; opaque = NO; autoresize = TM+BM; userInteractionEnabled = NO; layer = <CALayer: 0xd5e44b0>>" | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment