appium_lib 16.3.0 → 16.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/docs/w3c.md DELETED
@@ -1,55 +0,0 @@
1
- Perform touch actions for W3C module. Generate `touch` pointer action here and users can use this via `driver.action`
2
-
3
- [Documentation](http://www.rubydoc.info/github/appium/ruby_lib_core/Appium%2FCore%2FBase%2FCoreBridgeW3C:action)
4
-
5
- # Example
6
-
7
- ```ruby
8
- dialect #=> :w3c
9
-
10
- # then
11
- el = find_element(:name, 'Pickers')
12
- driver.action.click(el).perform #=> work
13
-
14
-
15
- # Scroll/Swipe
16
- driver.action
17
- .move_to_location(500, 500).pointer_down(:left)
18
- .move_to_location(0, 700)
19
- .release.perform
20
-
21
-
22
- # Zoom in
23
- # multiple action chains
24
- f1 = driver.action.add_pointer_input(:touch, 'finger1')
25
- f1.create_pointer_move(duration: 1, x: 200, y: 500,
26
- origin: ::Selenium::WebDriver::Interactions::PointerMove::VIEWPORT)
27
- f1.create_pointer_down(:left)
28
- f1.create_pause(0.5)
29
- f1.create_pointer_move(duration: 1, x: 200, y: 200,
30
- origin: ::Selenium::WebDriver::Interactions::PointerMove::VIEWPORT)
31
- f1.create_pointer_up(:left)
32
-
33
- f2 = driver.action.add_pointer_input(:touch, 'finger2')
34
- f2.create_pointer_move(duration: 1, x: 200, y: 500,
35
- origin: ::Selenium::WebDriver::Interactions::PointerMove::VIEWPORT)
36
- f2.create_pointer_down(:left)
37
- f2.create_pause(0.5)
38
- f2.create_pointer_move(duration: 1, x: 200, y: 800,
39
- origin: ::Selenium::WebDriver::Interactions::PointerMove::VIEWPORT)
40
- f2.create_pointer_up(:left)
41
-
42
- driver.perform_actions [f1, f2]
43
- ```
44
-
45
- # Note
46
- ## Coordinate points
47
- - jsonwp
48
- - Relative action coordinates are counted relatively to the **top left point** of element's rectangle
49
- - W3C
50
- - Relative action coordinates are counted relatively to the **center** of element's rectangle
51
-
52
- ## Limitations
53
- - WebDriverAgent support only `touch` as a `pointer type`.
54
- - 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.
55
- - 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)