File tree 1 file changed +13
-0
lines changed
lib/appium_lib_core/common/base
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,19 @@ def commands(command)
6
6
::Appium ::Core ::Commands ::COMMANDS_EXTEND_W3C [ command ]
7
7
end
8
8
9
+ # Perform touch actions for W3C module. Generate `touch` pointer action here and users can use this via `driver.action`
10
+ # - https://seleniumhq.github.io/selenium/docs/api/rb/Selenium/WebDriver/W3CActionBuilder.html
11
+ # - https://seleniumhq.github.io/selenium/docs/api/rb/Selenium/WebDriver/PointerActions.html
12
+ # - https://seleniumhq.github.io/selenium/docs/api/rb/Selenium/WebDriver/KeyActions.html
13
+ #
14
+ # @private
15
+ # override
16
+ #
17
+ # @example
18
+ #
19
+ # element = @driver.find_element(:id, "some id")
20
+ # @driver.action.click(element).perform # The `click` is a part of `PointerActions`
21
+ #
9
22
def action ( async = false )
10
23
::Selenium ::WebDriver ::W3CActionBuilder . new self ,
11
24
::Selenium ::WebDriver ::Interactions . pointer ( :touch , name : 'touch' ) ,
You can’t perform that action at this time.
0 commit comments