android_tests/lib/android/specs/common/patch.rb in appium_lib-1.0.0 vs android_tests/lib/android/specs/common/patch.rb in appium_lib-2.0.0
- old
+ new
@@ -11,18 +11,18 @@
# .name and .text
# https://github.com/appium/appium/blob/ea3450e7f78d1794bab42fa396a387e7b86fd3b3/android/bootstrap/src/io/appium/android/bootstrap/handler/GetAttribute.java#L43
# t 'value' do; end # Doesn't work on Android
t 'name' do
- wait { first_s_text.name.must_equal 'API Demos' }
+ wait { first_text.name.must_equal 'API Demos' }
end
# t 'tag_name' do; end # Doesn't work on Android
t 'location_rel' do
wait do
- loc = first_s_text.location_rel
+ loc = first_text.location_rel
loc.x.class.must_equal String
loc.y.class.must_equal String
end
end
end
@@ -53,10 +53,10 @@
end
t 'find many elements by resource id' do
wait do
value = find_elements(:id, 'android:id/text1').length
- value.must_equal 13
+ value.must_equal 11
end
end
t 'find single element by resource id' do
wait do
\ No newline at end of file