Sha256: d280fa7b1651e01c596ed76a00277b3bcfde821bf23c97aba64a235eb979c4c1
Contents?: true
Size: 1.15 KB
Versions: 19
Compression:
Stored size: 1.15 KB
Contents
Perform touch actions for W3C module. Generate `touch` pointer action here and users can use this via `driver.action` [Documentation](http://www.rubydoc.info/github/appium/ruby_lib_core/Appium%2FCore%2FBase%2FCoreBridgeW3C:action) # Example ```ruby dialect #=> :w3c # then el = find_element(:name, 'Pickers') driver.action.click(el).perform #=> work driver.action .move_to_location(500, 500).pointer_down(:left) .move_to_location(0, 700) .release.perform ``` # Note ## Coordinate points - jsonwp - Relative action coordinates are counted relatively to the **top left point** of element's rectangle - W3C - Relative action coordinates are counted relatively to the **center** of element's rectangle ## Limitations - WebDriverAgent support only `touch` as a `pointer type`. - By default, [ruby_lib_core](https://github.com/appium/ruby_lib_core/blob/ab5d7c5ed31f318a9395e5aeafe1d0d655d3cff4/lib/appium_lib_core/common/base/w3c_bridge.rb#L26) generate `touch` based actions. - About `pointer type` => [W3C](https://www.w3.org/TR/webdriver/#perform-actions) and [Simple WD Spec](https://github.com/jlipps/simple-wd-spec#perform-actions)
Version data entries
19 entries across 19 versions & 1 rubygems