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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -1
- data/appium_lib.gemspec +8 -2
- data/lib/appium_lib/android/common/helper.rb +3 -3
- data/lib/appium_lib/appium.rb +5 -5
- data/lib/appium_lib/common/helper.rb +1 -1
- data/lib/appium_lib/driver.rb +2 -1
- data/lib/appium_lib/version.rb +2 -2
- data/readme.md +6 -1
- metadata +9 -27
- data/.github/CODEOWNERS +0 -1
- data/.github/ISSUE_TEMPLATE.md +0 -21
- data/.github/PULL_REQUEST_TEMPLATE.md +0 -17
- data/.github/dependabot.yml +0 -14
- data/.github/workflows/functional-test.yml +0 -170
- data/.github/workflows/pr-title.yml +0 -10
- data/.github/workflows/rubocop.yml +0 -29
- data/.gitignore +0 -4
- data/.rubocop.yml +0 -299
- data/Gemfile +0 -25
- data/Rakefile +0 -31
- data/Thorfile +0 -7
- data/contributing.md +0 -35
- data/docs/android_uiautomator.md +0 -17
- data/docs/docs.md +0 -130
- data/docs/ios_xcuitest.md +0 -114
- data/docs/parallel.md +0 -8
- data/docs/w3c.md +0 -55
- data/release_notes.md +0 -2279
- data/test/first_test.rb +0 -29
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)
|