appium_lib_core 2.0.1 → 2.0.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 +9 -0
- data/lib/appium_lib_core/android/device.rb +12 -0
- data/lib/appium_lib_core/android/device/auth_finger_print.rb +21 -0
- data/lib/appium_lib_core/common/base/driver.rb +7 -3
- data/lib/appium_lib_core/common/command/common.rb +1 -0
- data/lib/appium_lib_core/version.rb +2 -2
- data/release_notes.md +12 -0
- data/script/commands.rb +2 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3164aa1c5b1c066187aa5bcc1f4c8f4eab8d0198
|
4
|
+
data.tar.gz: 52e95132b74047941aaf0160368bf7ed3b3cfd8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d99b9253606d2d3ff3b618e2fe0f11636373742bf0d95cbc8e84d000e4b2137e40026700ed1a71f8cb9e3c869a8995f3ed7422f09c74d7cd9a9b44c689dfd8ef
|
7
|
+
data.tar.gz: b5b93937831635b557b11d407761752be7253283b74d80c49d6cceb3080ee5728b392407e5378546f617dbc2e0fbdadac9bb4bc97a0a1761e1c29cce8133b0a9
|
data/CHANGELOG.md
CHANGED
@@ -8,6 +8,15 @@ All notable changes to this project will be documented in this file.
|
|
8
8
|
|
9
9
|
### Deprecations
|
10
10
|
|
11
|
+
## [2.0.2] - 2018-10-02
|
12
|
+
### Enhancements
|
13
|
+
- Add finger print feature for Android emulators [#13](https://github.com/appium/ruby_lib_core/issues/13)
|
14
|
+
- Add `keyboard_shown?` and `context=` as aliases of `is_keyboard_shown` and `set_contex`
|
15
|
+
|
16
|
+
### Bug fixes
|
17
|
+
|
18
|
+
### Deprecations
|
19
|
+
|
11
20
|
## [2.0.1] - 2018-09-01
|
12
21
|
### Enhancements
|
13
22
|
- Add `Appium::Core::Base::Driver#perform_actions` to send multiple actions. See `test_multiple_actions` as an example.
|
@@ -3,6 +3,7 @@ require_relative 'device/clipboard'
|
|
3
3
|
require_relative 'device/network'
|
4
4
|
require_relative 'device/performance'
|
5
5
|
require_relative 'device/screen'
|
6
|
+
require_relative 'device/auth_finger_print'
|
6
7
|
|
7
8
|
module Appium
|
8
9
|
module Core
|
@@ -240,6 +241,16 @@ module Appium
|
|
240
241
|
# @driver.set_clipboard(content: 'happy testing') #=> {"protocol"=>"W3C"}
|
241
242
|
#
|
242
243
|
|
244
|
+
# @!method finger_print(finger_id)
|
245
|
+
# Authenticate users by using their finger print scans on supported emulators.
|
246
|
+
#
|
247
|
+
# @param [Integer] finger_id Finger prints stored in Android Keystore system (from 1 to 10)
|
248
|
+
#
|
249
|
+
# @example
|
250
|
+
#
|
251
|
+
# @driver.finger_print 1
|
252
|
+
#
|
253
|
+
|
243
254
|
####
|
244
255
|
## class << self
|
245
256
|
####
|
@@ -324,6 +335,7 @@ module Appium
|
|
324
335
|
Network.add_methods
|
325
336
|
Clipboard.add_methods
|
326
337
|
Emulator.add_methods
|
338
|
+
Authentication.add_methods
|
327
339
|
end
|
328
340
|
end
|
329
341
|
end # module Device
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module Appium
|
2
|
+
module Core
|
3
|
+
module Android
|
4
|
+
module Device
|
5
|
+
module Authentication
|
6
|
+
def self.add_methods
|
7
|
+
::Appium::Core::Device.add_endpoint_method(:finger_print) do
|
8
|
+
def finger_print(finger_id)
|
9
|
+
unless (1..10).cover? finger_id.to_i
|
10
|
+
raise ArgumentError, "finger_id should be integer between 1 to 10. Not #{finger_id}"
|
11
|
+
end
|
12
|
+
|
13
|
+
execute(:finger_print, {}, { fingerprintId: finger_id.to_i })
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end # def self.emulator_commands
|
17
|
+
end # module Emulator
|
18
|
+
end # module Device
|
19
|
+
end # module Android
|
20
|
+
end # module Core
|
21
|
+
end # module Appium
|
@@ -94,10 +94,12 @@ module Appium
|
|
94
94
|
#
|
95
95
|
# @example
|
96
96
|
# @driver.is_keyboard_shown # false
|
97
|
+
# @driver.keyboard_shown? # true
|
97
98
|
#
|
98
|
-
def
|
99
|
+
def keyboard_shown?
|
99
100
|
@bridge.is_keyboard_shown
|
100
101
|
end
|
102
|
+
alias is_keyboard_shown keyboard_shown?
|
101
103
|
|
102
104
|
# Send keys for a current active element
|
103
105
|
# @param [String] key Input text
|
@@ -233,16 +235,18 @@ module Appium
|
|
233
235
|
# @example
|
234
236
|
#
|
235
237
|
# @driver.set_context "NATIVE_APP"
|
238
|
+
# @driver.context = "NATIVE_APP"
|
236
239
|
#
|
237
|
-
def
|
240
|
+
def context=(context = null)
|
238
241
|
@bridge.set_context(context)
|
239
242
|
end
|
243
|
+
alias set_context context=
|
240
244
|
|
241
245
|
# Set the value to element directly
|
242
246
|
#
|
243
247
|
# @example
|
244
248
|
#
|
245
|
-
# set_immediate_value element, 'hello'
|
249
|
+
# @driver.set_immediate_value element, 'hello'
|
246
250
|
#
|
247
251
|
def set_immediate_value(element, *value)
|
248
252
|
@bridge.set_immediate_value(element, *value)
|
@@ -42,6 +42,7 @@ module Appium
|
|
42
42
|
pull_folder: [:post, 'session/:session_id/appium/device/pull_folder'.freeze],
|
43
43
|
get_clipboard: [:post, 'session/:session_id/appium/device/get_clipboard'.freeze],
|
44
44
|
set_clipboard: [:post, 'session/:session_id/appium/device/set_clipboard'.freeze],
|
45
|
+
finger_print: [:post, 'session/:session_id/appium/device/finger_print'.freeze],
|
45
46
|
get_settings: [:get, 'session/:session_id/appium/settings'.freeze],
|
46
47
|
update_settings: [:post, 'session/:session_id/appium/settings'.freeze],
|
47
48
|
stop_recording_screen: [:post, 'session/:session_id/appium/stop_recording_screen'.freeze],
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Appium
|
2
2
|
module Core
|
3
|
-
VERSION = '2.0.
|
4
|
-
DATE = '2018-
|
3
|
+
VERSION = '2.0.2'.freeze unless defined? ::Appium::Core::VERSION
|
4
|
+
DATE = '2018-10-02'.freeze unless defined? ::Appium::Core::DATE
|
5
5
|
end
|
6
6
|
end
|
data/release_notes.md
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
#### v2.0.2 2018-10-02
|
2
|
+
|
3
|
+
- [8a1c128](https://github.com/appium/ruby_lib_core/commit/8a1c1282ecdff628d3cd6508dbf455a9884a816d) Release 2.0.2
|
4
|
+
- [7519e45](https://github.com/appium/ruby_lib_core/commit/7519e45792fa618254c89f1ac9f4245718b8b3ea) add aliases (#145)
|
5
|
+
- [ba9dd3c](https://github.com/appium/ruby_lib_core/commit/ba9dd3c06e128421a256a06638483f584df6b59f) add test_mobile_perform_action (#144)
|
6
|
+
- [1ee07f2](https://github.com/appium/ruby_lib_core/commit/1ee07f28e9213380cb3e222ddad19d508c56df24) move a place of finger_print
|
7
|
+
- [672929f](https://github.com/appium/ruby_lib_core/commit/672929fed1a8a58b4462f4787218524f888b003c) tweak module name
|
8
|
+
- [4e2bfc0](https://github.com/appium/ruby_lib_core/commit/4e2bfc01f9771eba0a39bce7b2048f3586e726fe) add finger print feature (#142)
|
9
|
+
- [ee6756b](https://github.com/appium/ruby_lib_core/commit/ee6756b77d9d3b36c3a7bd7f3d758607b8c74a4b) update command check rake task
|
10
|
+
- [e5e889b](https://github.com/appium/ruby_lib_core/commit/e5e889b3510dc7e4c7f11be0b53dcfef20f95769) add tests for location in webdriver commands
|
11
|
+
|
12
|
+
|
1
13
|
#### v2.0.1 2018-09-01
|
2
14
|
|
3
15
|
- [f0382b5](https://github.com/appium/ruby_lib_core/commit/f0382b5e30a43e187cb47504d82a7a5b6829c1d4) Release 2.0.1
|
data/script/commands.rb
CHANGED
@@ -31,10 +31,10 @@ module Script
|
|
31
31
|
# @return [String] The file path in which has saved `routes.js`.
|
32
32
|
#
|
33
33
|
def get_mjsonwp_routes(to_path = './mjsonwp_routes.js')
|
34
|
-
uri = URI 'https://raw.githubusercontent.com/appium/appium-base-driver/master/lib/
|
34
|
+
uri = URI 'https://raw.githubusercontent.com/appium/appium-base-driver/master/lib/protocol/routes.js?raw=1'
|
35
35
|
result = Net::HTTP.get uri
|
36
36
|
|
37
|
-
File.delete to_path
|
37
|
+
File.delete to_path if File.exist? to_path
|
38
38
|
File.write to_path, result
|
39
39
|
to_path
|
40
40
|
end
|
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: 2.0.
|
4
|
+
version: 2.0.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: 2018-
|
11
|
+
date: 2018-10-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: selenium-webdriver
|
@@ -237,6 +237,7 @@ files:
|
|
237
237
|
- lib/appium_lib_core.rb
|
238
238
|
- lib/appium_lib_core/android.rb
|
239
239
|
- lib/appium_lib_core/android/device.rb
|
240
|
+
- lib/appium_lib_core/android/device/auth_finger_print.rb
|
240
241
|
- lib/appium_lib_core/android/device/clipboard.rb
|
241
242
|
- lib/appium_lib_core/android/device/emulator.rb
|
242
243
|
- lib/appium_lib_core/android/device/network.rb
|