We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6ae0ad commit 6ed85d7Copy full SHA for 6ed85d7
test/functional/ios/ios/device_test.rb
@@ -37,7 +37,9 @@ def test_image_element
37
el = @@driver.find_element :accessibility_id, 'Buttons'
38
@@driver.save_element_screenshot el, 'test/functional/data/test_ios_button.png'
39
40
- image_element = @@driver.find_element_by_image AppiumLibCoreTest.path_of('test/functional/data/test_ios_button.png')
+ # sometimes animation affects here
41
+ image_element =
42
+ @@core.wait { @@driver.find_element_by_image AppiumLibCoreTest.path_of('test/functional/data/test_ios_button.png') }
43
44
assert image_element.inspect
45
assert image_element.hash
0 commit comments