File tree 1 file changed +2
-9
lines changed
test/functional/android/webdriver
1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -54,21 +54,14 @@ def test_tap_scroll
54
54
@driver . manage . timeouts . implicit_wait = 3
55
55
56
56
if @@core . automation_name == :espresso
57
- # Skip in espresso, since espresso show a target element in recyclerview even it is out of the view
57
+ el = @@core . wait { @driver . find_element ( :accessibility_id , 'Lists' ) }
58
+ assert_equal 'Lists' , el . text
58
59
else
59
60
assert_raises ::Selenium ::WebDriver ::Error ::NoSuchElementError do
60
61
@driver . find_element ( :accessibility_id , 'Custom' )
61
62
end
62
63
end
63
64
@driver . manage . timeouts . implicit_wait = @@core . default_wait
64
-
65
- if @@core . automation_name == :espresso
66
- el = @@core . wait { @driver . find_element ( :accessibility_id , 'Lists' ) }
67
- assert_equal 'Lists' , el . text
68
- else
69
- # Sometimes UIA2 scrolls a element too much
70
- @driver . find_element ( :accessibility_id , 'WebView' )
71
- end
72
65
end
73
66
74
67
def test_double_tap
You can’t perform that action at this time.
0 commit comments