appium_lib_core 1.2.5 → 1.2.6
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/common/base/driver.rb +14 -0
- data/lib/appium_lib_core/common/device.rb +11 -0
- data/lib/appium_lib_core/driver.rb +3 -1
- data/lib/appium_lib_core/version.rb +2 -2
- data/release_notes.md +12 -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: c286b55d124a69df3ae3ef7316b37a12eea4785f
|
4
|
+
data.tar.gz: 3b72edaa3f3ecd325e26449189d86210e5cd5b1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0b4d51f44dfe347017ffb1c344f8abf0afb4a47c46af3a6023aa0c480c160bfd4bf8a2f80b03aa9cd2f0ed5b950fae9a03bf7933608b125df5499528e8ac999
|
7
|
+
data.tar.gz: 7a24e9a40a8a2a12b148cd5b2b3b15af70294ae61e5809f909ece54a76975c889a5f36910eb28a9539b89026c95d9ac949579e8af4de947422ef53c8058f51df
|
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
|
+
## [1.2.6]
|
12
|
+
### Enhancements
|
13
|
+
- Add `window_rect`
|
14
|
+
|
15
|
+
### Bug fixes
|
16
|
+
- Make `@driver.automation_name` symbol when someone define the `automationName` with the server argument.
|
17
|
+
|
18
|
+
### Deprecations
|
19
|
+
|
11
20
|
## [1.2.5] - 2018-01-13
|
12
21
|
### Enhancements
|
13
22
|
- Enhance W3C support
|
@@ -47,6 +47,20 @@ module Appium
|
|
47
47
|
manage.window.size
|
48
48
|
end
|
49
49
|
|
50
|
+
# Get the device window's rect.
|
51
|
+
# @return [Selenium::WebDriver::Rectangle]
|
52
|
+
#
|
53
|
+
# @example
|
54
|
+
# size = @driver.window_rect
|
55
|
+
# size.width #=> Integer
|
56
|
+
# size.height #=> Integer
|
57
|
+
# size.x #=> 0
|
58
|
+
# size.y #=> 0
|
59
|
+
#
|
60
|
+
def window_rect
|
61
|
+
manage.window.rect
|
62
|
+
end
|
63
|
+
|
50
64
|
# Get the device window's size.
|
51
65
|
# @return [String]
|
52
66
|
#
|
@@ -174,6 +174,17 @@ module Appium
|
|
174
174
|
# @driver.app_strings #=> "TransitionsTitle"=>"Transitions", "WebTitle"=>"Web"
|
175
175
|
#
|
176
176
|
|
177
|
+
# @!method lock(duration = nil)
|
178
|
+
# Lock the device
|
179
|
+
# @return [String]
|
180
|
+
#
|
181
|
+
# @example
|
182
|
+
#
|
183
|
+
# @driver.lock #=> Lock the device
|
184
|
+
# @driver.lock(5) #=> Lock the device in 5 sec and unlock the device after 5 sec.
|
185
|
+
# # Block other commands during locking the device.
|
186
|
+
#
|
187
|
+
|
177
188
|
# @!method background_app(duration = 0)
|
178
189
|
# Backgrounds the app for a set number of seconds.
|
179
190
|
# This is a blocking application
|
@@ -458,7 +458,9 @@ module Appium
|
|
458
458
|
# @private
|
459
459
|
def set_automation_name_if_nil
|
460
460
|
return unless @automation_name.nil?
|
461
|
-
@automation_name = @driver.capabilities['automationName']
|
461
|
+
@automation_name = if @driver.capabilities['automationName']
|
462
|
+
@driver.capabilities['automationName'].intern
|
463
|
+
end
|
462
464
|
end
|
463
465
|
|
464
466
|
# @private
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Appium
|
2
2
|
module Core
|
3
|
-
VERSION = '1.2.
|
4
|
-
DATE = '2018-01-
|
3
|
+
VERSION = '1.2.6'.freeze unless defined? ::Appium::Core::VERSION
|
4
|
+
DATE = '2018-01-21'.freeze unless defined? ::Appium::Core::DATE
|
5
5
|
end
|
6
6
|
end
|
data/release_notes.md
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
#### v1.2.6 2018-01-21
|
2
|
+
|
3
|
+
- [5bca38e](https://github.com/appium/ruby_lib_core/commit/5bca38e9d11c7596f54c81f7b123a0e5dce59040) Release 1.2.6
|
4
|
+
- [faa6d3f](https://github.com/appium/ruby_lib_core/commit/faa6d3f92bc4081507f588da55a6c9866ee4e1b9) fix some tests
|
5
|
+
- [2cb416f](https://github.com/appium/ruby_lib_core/commit/2cb416f1583d1529f5232f716e4a41807069ffe6) add the lock is blocking call
|
6
|
+
- [6f44596](https://github.com/appium/ruby_lib_core/commit/6f44596c46bba12c151d1c43e73f4453621944aa) add parameters for tests (#54)
|
7
|
+
- [1d89232](https://github.com/appium/ruby_lib_core/commit/1d89232419ddd484f5231be38d95d9cfdc8efbc2) add lock API doc (#53)
|
8
|
+
- [087d654](https://github.com/appium/ruby_lib_core/commit/087d65415322f783bf1eb0bf71eb5e196d21a6ba) apply intern (#52)
|
9
|
+
- [c03f03e](https://github.com/appium/ruby_lib_core/commit/c03f03e0c66cd13fe365df89bce9ce4088eb9b4b) add rect (#51)
|
10
|
+
- [3c4e9a8](https://github.com/appium/ruby_lib_core/commit/3c4e9a89f351da0588b806248ac22101c2b66a24) add source test
|
11
|
+
|
12
|
+
|
1
13
|
#### v1.2.5 2018-01-13
|
2
14
|
|
3
15
|
- [0934b97](https://github.com/appium/ruby_lib_core/commit/0934b977419d6b5359dcc8e5b7c4edcd7f4916f4) Release 1.2.5
|
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.6
|
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-01-
|
11
|
+
date: 2018-01-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: selenium-webdriver
|