Skip to content

Commit 637fef7

Browse files
Use element.displayed? not visible
1 parent fc0c79c commit 637fef7

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

lib/appium_lib/ios/patch.rb

-13
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,6 @@ def type text
1414
JS
1515
@driver.execute_script js
1616
end
17-
18-
# returns if the element is visible
19-
# true: 1 = visible,
20-
# false: 0 = not visible, null = unknown
21-
#
22-
# http://developer.apple.com/library/ios/#documentation/ToolsLanguages/Reference/UIAElementClassReference/UIAElement/UIAElement.html#//apple_ref/doc/uid/TP40009903
23-
def visible
24-
js = <<-JS
25-
au.getElement('#{self.ref}').isVisible();
26-
JS
27-
result = @driver.execute_script js
28-
result == 1 ? true : false
29-
end
3017
end
3118
end
3219
end

0 commit comments

Comments
 (0)