Skip to content

Commit ec2ec43

Browse files
authored
add documentation
1 parent c9c2a03 commit ec2ec43

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

lib/appium_lib_core/common/base/w3c_bridge.rb

+13
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,19 @@ def commands(command)
66
::Appium::Core::Commands::COMMANDS_EXTEND_W3C[command]
77
end
88

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+
#
922
def action(async = false)
1023
::Selenium::WebDriver::W3CActionBuilder.new self,
1124
::Selenium::WebDriver::Interactions.pointer(:touch, name: 'touch'),

0 commit comments

Comments
 (0)