Skip to content

Commit

Permalink
add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
KazuCocoa authored Dec 23, 2017
1 parent c9c2a03 commit ec2ec43
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lib/appium_lib_core/common/base/w3c_bridge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,19 @@ def commands(command)
::Appium::Core::Commands::COMMANDS_EXTEND_W3C[command]
end

# Perform touch actions for W3C module. Generate `touch` pointer action here and users can use this via `driver.action`
# - https://seleniumhq.github.io/selenium/docs/api/rb/Selenium/WebDriver/W3CActionBuilder.html
# - https://seleniumhq.github.io/selenium/docs/api/rb/Selenium/WebDriver/PointerActions.html
# - https://seleniumhq.github.io/selenium/docs/api/rb/Selenium/WebDriver/KeyActions.html
#
# @private
# override
#
# @example
#
# element = @driver.find_element(:id, "some id")
# @driver.action.click(element).perform # The `click` is a part of `PointerActions`
#
def action(async = false)
::Selenium::WebDriver::W3CActionBuilder.new self,
::Selenium::WebDriver::Interactions.pointer(:touch, name: 'touch'),
Expand Down

0 comments on commit ec2ec43

Please sign in to comment.