Skip to content

Commit f0e0954

Browse files
Dynamic is Android only
Update docs
1 parent 8a1a387 commit f0e0954

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed
File renamed without changes.

lib/appium_lib/common/helper.rb

+6-5
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ module Appium::Common
2525
# Example: wait { name('back').click }
2626
#
2727
# 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.
2930
# @param interval [Float] the time in seconds to wait after calling the block
3031
# @param block [Block] the block to call
3132
# @return [Object] the result of block.call
@@ -187,17 +188,17 @@ def get_source
187188
JSON.parse @driver.page_source, max_nesting: 9999
188189
end
189190

190-
# Returns the first element that matches name
191+
# Returns the first element that exactly matches name
191192
#
192-
# @param name [String] the name to match
193+
# @param name [String] the name to exactly match
193194
# @return [Element]
194195
def find_name name
195196
find_element :name, name
196197
end
197198

198-
# Returns all elements that match name
199+
# Returns all elements that exactly match name
199200
#
200-
# @param name [String] the name to match
201+
# @param name [String] the name to exactly match
201202
# @return [Array<Element>]
202203
def find_names name
203204
find_elements :name, name

lib/appium_lib/driver.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ module Appium
6262
require 'common/helper'
6363
require 'common/patch'
6464
require 'common/version'
65-
require 'common/dynamic'
6665
require 'common/element/button'
6766
require 'common/element/text'
6867
require 'common/element/window'
@@ -75,6 +74,7 @@ module Appium
7574
require 'ios/element/textfield'
7675

7776
# android
77+
require 'android/dynamic'
7878
require 'android/helper'
7979
require 'android/patch'
8080
require 'android/element/alert'

0 commit comments

Comments
 (0)