File tree 3 files changed +7
-6
lines changed
3 files changed +7
-6
lines changed File renamed without changes.
Original file line number Diff line number Diff line change @@ -25,7 +25,8 @@ module Appium::Common
25
25
# Example: wait { name('back').click }
26
26
#
27
27
# Give up after 30 seconds.
28
- # @param max_wait [Integer] the maximum time in seconds to wait for
28
+ # @param max_wait [Integer] the maximum time in seconds to wait for.
29
+ # Note that max wait 0 means infinity.
29
30
# @param interval [Float] the time in seconds to wait after calling the block
30
31
# @param block [Block] the block to call
31
32
# @return [Object] the result of block.call
@@ -187,17 +188,17 @@ def get_source
187
188
JSON . parse @driver . page_source , max_nesting : 9999
188
189
end
189
190
190
- # Returns the first element that matches name
191
+ # Returns the first element that exactly matches name
191
192
#
192
- # @param name [String] the name to match
193
+ # @param name [String] the name to exactly match
193
194
# @return [Element]
194
195
def find_name name
195
196
find_element :name , name
196
197
end
197
198
198
- # Returns all elements that match name
199
+ # Returns all elements that exactly match name
199
200
#
200
- # @param name [String] the name to match
201
+ # @param name [String] the name to exactly match
201
202
# @return [Array<Element>]
202
203
def find_names name
203
204
find_elements :name , name
Original file line number Diff line number Diff line change @@ -62,7 +62,6 @@ module Appium
62
62
require 'common/helper'
63
63
require 'common/patch'
64
64
require 'common/version'
65
- require 'common/dynamic'
66
65
require 'common/element/button'
67
66
require 'common/element/text'
68
67
require 'common/element/window'
@@ -75,6 +74,7 @@ module Appium
75
74
require 'ios/element/textfield'
76
75
77
76
# android
77
+ require 'android/dynamic'
78
78
require 'android/helper'
79
79
require 'android/patch'
80
80
require 'android/element/alert'
You can’t perform that action at this time.
0 commit comments