@@ -76,15 +76,17 @@ def back_click(opts={})
7676
7777 it 'returns its text' do
7878 rows = subject . find_elements ( :class_name , 'UIATableCell' )
79- rows . first . name . should eq 'Buttons, Various uses of UIButton'
79+ # rows.first.name.should eq 'Buttons, Various uses of UIButton'
80+ rows . first . name . should eq 'Buttons'
8081 end
8182 end
8283
8384 describe 'position' do
8485 it 'is returned by the driver' do
8586 third_row = ele_index ( 'UIATableCell' , 3 )
8687 third_row . location . x . should be 0
87- third_row . location . y . should be 152
88+ # third_row.location.y.should be 152
89+ third_row . location . y . should be 178.8125
8890 end
8991 end
9092
@@ -137,7 +139,8 @@ def back_click(opts={})
137139
138140 before :all do
139141 id ( 'TextFieldTitle' ) . click
140- @text_field = first_textfield
142+ #@text_field = first_textfield
143+ @text_field = find_elements ( :class_name , 'UIATextField' ) [ 1 ]
141144 end
142145
143146 after :all do
@@ -212,7 +215,9 @@ def back_click(opts={})
212215 @slider . value . should eq '50%'
213216 actions = Appium ::TouchAction . new
214217 actions . press element : @slider , x : 60 , y : 3
215- actions . move_to element : @slider , x : 120 , y : 3
218+ # actions.move_to element: @slider, x: 120, y: 3
219+ actions . move_to element : @slider , x : 130 , y : 3
220+
216221 actions . release
217222 actions . perform
218223 @slider . value . should eq '100%'
0 commit comments