appium_lib_core 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/appium_lib_core/common/base/w3c_bridge.rb +16 -0
- data/lib/appium_lib_core/common/command.rb +8 -4
- data/lib/appium_lib_core/version.rb +2 -2
- data/release_notes.md +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f05eb4862cc7d351acbf86c01a3cbd3256500885
|
4
|
+
data.tar.gz: 05a3ecda36ab90e9f21c8633d49b922ff52d10e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ce9fbbeed16a6c1e07826f2a07f3f581f3c0506dbae734e74a4314a8c8e87342a5334b8ebffc6d74d96eb4d1c7e6d1378542adf85115f59e5e99be52d138a62
|
7
|
+
data.tar.gz: 142b7d12043c528617e82146602293ebef36292604ff4ad678a4914cc8d1a04e94a08a052bd5974957906b681278ba55501f017a4b8a3ddeff82b4e29ab6671f
|
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.2] - 2017-12-25
|
12
|
+
### Enhancements
|
13
|
+
|
14
|
+
### Bug fixes
|
15
|
+
- Fix some w3c methods to work with Appium [#37](https://github.com/appium/ruby_lib_core/pull/37)
|
16
|
+
|
17
|
+
### Deprecations
|
18
|
+
|
11
19
|
## [1.2.1] - 2017-12-23
|
12
20
|
### Enhancements
|
13
21
|
- override default duration to make some action fast [#36](https://github.com/appium/ruby_lib_core/pull/36)
|
@@ -31,6 +31,22 @@ module Appium
|
|
31
31
|
end
|
32
32
|
alias actions action
|
33
33
|
|
34
|
+
# override
|
35
|
+
def page_source
|
36
|
+
# For W3C
|
37
|
+
# execute_script('var source = document.documentElement.outerHTML;' \
|
38
|
+
# 'if (!source) { source = new XMLSerializer().serializeToString(document); }' \
|
39
|
+
# 'return source;')
|
40
|
+
execute :get_page_source
|
41
|
+
end
|
42
|
+
|
43
|
+
# override
|
44
|
+
def element_attribute(element, name)
|
45
|
+
# For W3C
|
46
|
+
# execute_atom :getAttribute, element, name
|
47
|
+
execute :get_element_attribute, id: element.ref, name: name
|
48
|
+
end
|
49
|
+
|
34
50
|
# override
|
35
51
|
def find_element_by(how, what, parent = nil)
|
36
52
|
how, what = convert_locators(how, what)
|
@@ -72,19 +72,23 @@ module Appium
|
|
72
72
|
COMMANDS = {}.merge(COMMAND).merge(COMMAND_ANDROID).merge(COMMAND_IOS)
|
73
73
|
.merge(COMMAND_NO_ARG).freeze
|
74
74
|
|
75
|
-
COMMANDS_EXTEND_MJSONWP = COMMANDS.merge(
|
75
|
+
COMMANDS_EXTEND_MJSONWP = COMMANDS.merge(::Appium::Core::Base::Commands::OSS).merge(
|
76
76
|
{
|
77
77
|
# W3C already has.
|
78
78
|
take_element_screenshot: [:get, 'session/:session_id/element/:id/screenshot'.freeze]
|
79
79
|
}
|
80
|
-
).
|
81
|
-
COMMANDS_EXTEND_W3C = COMMANDS.merge(
|
80
|
+
).freeze
|
81
|
+
COMMANDS_EXTEND_W3C = COMMANDS.merge(::Appium::Core::Base::Commands::W3C).merge(
|
82
82
|
{
|
83
83
|
# ::Appium::Core::Base::Commands::OSS has the following commands and Appium also use them.
|
84
84
|
# Delegated to ::Appium::Core::Base::Commands::OSS commands
|
85
85
|
status: [:get, 'status'.freeze],
|
86
86
|
is_element_displayed: [:get, 'session/:session_id/element/:id/displayed'.freeze],
|
87
87
|
|
88
|
+
# FIXME: remove after apply https://github.com/SeleniumHQ/selenium/pull/5249
|
89
|
+
# The fix will be included in selenium-3.8.2
|
90
|
+
get_page_source: [:get, 'session/:session_id/source'.freeze],
|
91
|
+
|
88
92
|
# For IME
|
89
93
|
ime_get_available_engines: [:get, 'session/:session_id/ime/available_engines'.freeze],
|
90
94
|
ime_get_active_engine: [:get, 'session/:session_id/ime/active_engine'.freeze],
|
@@ -92,7 +96,7 @@ module Appium
|
|
92
96
|
ime_deactivate: [:post, 'session/:session_id/ime/deactivate'.freeze],
|
93
97
|
ime_activate_engine: [:post, 'session/:session_id/ime/activate'.freeze]
|
94
98
|
}
|
95
|
-
).
|
99
|
+
).freeze
|
96
100
|
end
|
97
101
|
end
|
98
102
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Appium
|
2
2
|
module Core
|
3
|
-
VERSION = '1.2.
|
4
|
-
DATE = '2017-12-
|
3
|
+
VERSION = '1.2.2'.freeze unless defined? ::Appium::Core::VERSION
|
4
|
+
DATE = '2017-12-25'.freeze unless defined? ::Appium::Core::DATE
|
5
5
|
end
|
6
6
|
end
|
data/release_notes.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
#### v1.2.2 2017-12-25
|
2
|
+
|
3
|
+
- [9e7a971](https://github.com/appium/ruby_lib_core/commit/9e7a971ae35aefd471ee07faae8c0f78fb9b0ae2) Release 1.2.2
|
4
|
+
- [0bd38f5](https://github.com/appium/ruby_lib_core/commit/0bd38f587b7631e8f89ee37cb27083d7e6966714) add some methods for w3c (#37)
|
5
|
+
|
6
|
+
|
1
7
|
#### v1.2.1 2017-12-23
|
2
8
|
|
3
9
|
- [93e094e](https://github.com/appium/ruby_lib_core/commit/93e094eeebf200cae7c4b097d674367d3457d542) Release 1.2.1
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appium_lib_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kazuaki MATSUO
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-12-
|
11
|
+
date: 2017-12-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: selenium-webdriver
|