Skip to content

Commit ff63433

Browse files
Add id method
1 parent c59f7ce commit ff63433

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/appium_lib/common/helper.rb

+5
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ def wait_true max_wait=30, interval=0.5, &block
5757
result
5858
end
5959

60+
# Find by id. Useful for selendroid
61+
def id id
62+
find_element :id, id
63+
end
64+
6065
# Presses the back button on Android.
6166
# @return [void]
6267
def back

0 commit comments

Comments
 (0)