Skip to content

Commit d050100

Browse files
authored
Add some documents (#454)
* set auomation name from server if client side is nil * add some documentations for some methods
1 parent 6ee434f commit d050100

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

lib/appium_lib/device/multi_touch.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module Appium
88
#
99
# ```ruby
1010
# action_1 = TouchAction.new.press(x: 45, y: 100).wait(5).release
11-
# action_2 = TouchAction.new.tap(element: el, x: 50, y:5, count: 3).release
11+
# action_2 = TouchAction.new.tap(element: el, x: 50, y:5, count: 3)
1212
#
1313
# multi_touch_action = MultiTouch.new
1414
# multi_touch_action.add action_1

lib/appium_lib/device/touch_actions.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ def release(opts = nil)
7575
chain_method(:release, args)
7676
end
7777

78-
# Touch a point on the screen
78+
# Touch a point on the screen.
79+
# Alternatively, you can use `press(...).release.perform` instead of `tap(...).perform`.
7980
#
8081
# @option opts [WebDriver::Element] :element (Optional) Element to restrict scope too.
8182
# @option opts [integer] :x x co-ordinate to tap

lib/appium_lib/ios/mobile_methods.rb

+7
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ class << self
77
# ```ruby
88
# find_elements :uiautomation, 'elements()
99
# ```
10+
#
11+
# @!method ios_predicate_string_find
12+
# find_element/s can be used with a [Predicates](https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/Predicates/AdditionalChapters/Introduction.html)
13+
#
14+
# ```ruby
15+
# find_elements :predicate, "isWDVisible == 1"
16+
# ```
1017
def extended(_mod)
1118
::Appium::Driver::SearchContext::FINDERS[:uiautomation] = '-ios uiautomation'
1219
::Appium::Driver::SearchContext::FINDERS[:predicate] = '-ios predicate string'

0 commit comments

Comments
 (0)