appium_lib_core 1.2.0 → 1.2.1
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 +8 -0
- data/lib/appium_lib_core/common/base/w3c_bridge.rb +17 -0
- data/lib/appium_lib_core/version.rb +1 -1
- data/release_notes.md +7 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 623f1ed4495ea5c526111c804477061fc0fe5242
|
4
|
+
data.tar.gz: b9a869cfcd42bb21ed8742a4569e886472b5f282
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0a4efa129c8c52c12a4ed75a67fc77cff8bfd3803de0c9040091ef174bbe720157082b0a96216a41a09884353cbdeab05fa42365f8dd9d4a8d7c8fb8773ffdd
|
7
|
+
data.tar.gz: cf87d6eb43d36a71980ddb61c61d60d5fc8b67db49dcebd06d1a46d53716596d03f9b5755734bf1c62b5df341958df1d75076dc04095c3a06069ffb2a6c3df18
|
data/CHANGELOG.md
CHANGED
@@ -8,6 +8,14 @@ All notable changes to this project will be documented in this file.
|
|
8
8
|
|
9
9
|
### Deprecations
|
10
10
|
|
11
|
+
## [1.2.1] - 2017-12-23
|
12
|
+
### Enhancements
|
13
|
+
- override default duration to make some action fast [#36](https://github.com/appium/ruby_lib_core/pull/36)
|
14
|
+
|
15
|
+
### Bug fixes
|
16
|
+
|
17
|
+
### Deprecations
|
18
|
+
|
11
19
|
## [1.2.0] - 2017-12-23
|
12
20
|
### Enhancements
|
13
21
|
- Append `appium:` prefix for capabilities automatically due to W3C format.
|
@@ -2,10 +2,27 @@ module Appium
|
|
2
2
|
module Core
|
3
3
|
class Base
|
4
4
|
class CoreBridgeW3C < ::Selenium::WebDriver::Remote::W3C::Bridge
|
5
|
+
# Used for default duration of each touch actions
|
6
|
+
# Override from 250 milliseconds to 50 milliseconds
|
7
|
+
::Selenium::WebDriver::PointerActions::DEFAULT_MOVE_DURATION = 0.05
|
8
|
+
|
5
9
|
def commands(command)
|
6
10
|
::Appium::Core::Commands::COMMANDS_EXTEND_W3C[command]
|
7
11
|
end
|
8
12
|
|
13
|
+
# Perform touch actions for W3C module. Generate `touch` pointer action here and users can use this via `driver.action`
|
14
|
+
# - https://seleniumhq.github.io/selenium/docs/api/rb/Selenium/WebDriver/W3CActionBuilder.html
|
15
|
+
# - https://seleniumhq.github.io/selenium/docs/api/rb/Selenium/WebDriver/PointerActions.html
|
16
|
+
# - https://seleniumhq.github.io/selenium/docs/api/rb/Selenium/WebDriver/KeyActions.html
|
17
|
+
#
|
18
|
+
# @private
|
19
|
+
# override
|
20
|
+
#
|
21
|
+
# @example
|
22
|
+
#
|
23
|
+
# element = @driver.find_element(:id, "some id")
|
24
|
+
# @driver.action.click(element).perform # The `click` is a part of `PointerActions`
|
25
|
+
#
|
9
26
|
def action(async = false)
|
10
27
|
::Selenium::WebDriver::W3CActionBuilder.new self,
|
11
28
|
::Selenium::WebDriver::Interactions.pointer(:touch, name: 'touch'),
|
data/release_notes.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
#### v1.2.1 2017-12-23
|
2
|
+
|
3
|
+
- [93e094e](https://github.com/appium/ruby_lib_core/commit/93e094eeebf200cae7c4b097d674367d3457d542) Release 1.2.1
|
4
|
+
- [ab5d7c5](https://github.com/appium/ruby_lib_core/commit/ab5d7c5ed31f318a9395e5aeafe1d0d655d3cff4) override default duration to make some action fast (#36)
|
5
|
+
- [ec2ec43](https://github.com/appium/ruby_lib_core/commit/ec2ec43fa1092321c07f14ced79cc7a5b37db8f8) add documentation
|
6
|
+
|
7
|
+
|
1
8
|
#### v1.2.0 2017-12-23
|
2
9
|
|
3
10
|
- [28f937b](https://github.com/appium/ruby_lib_core/commit/28f937bbaf15a7d99b8870b5b1ec1f063414ea3b) Release 1.2.0
|