appium_lib_core 1.3.2 → 1.3.3
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/appium_lib_core.gemspec +2 -1
- data/lib/appium_lib_core/common/base/bridge/w3c.rb +5 -0
- data/lib/appium_lib_core/common/base/driver.rb +88 -0
- data/lib/appium_lib_core/common/command.rb +4 -1
- data/lib/appium_lib_core/common/device.rb +6 -2
- data/lib/appium_lib_core/version.rb +2 -2
- data/release_notes.md +8 -0
- metadata +30 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5508c27e048a97c7cada6eaadf5508571ecc3922
|
4
|
+
data.tar.gz: 1f11cc39e8b4ae69da7d148b7c412d3c6b82ee1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6959fb85dff564a612fc218e64abfdc13bfa625f13fb1a20d0cc41cff7d74b4e60eb334cd81e2ddbc87e7fca8db8461bd319c348d51f7623a143695e00abc434
|
7
|
+
data.tar.gz: b2237a2d4d6b017cbe4d1ea5f9fd9e8b5fcfecfe5634878364b1db8e31f1544cfd3f6d2e1400c136cbb807db809d53b19bef6a92c49691da168d35b77f3dbcbd
|
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.3.3] - 2018-03-03
|
12
|
+
### Enhancements
|
13
|
+
- add `session_capabilities`: https://appium.io/docs/en/commands/session/get/
|
14
|
+
|
15
|
+
### Bug fixes
|
16
|
+
|
17
|
+
### Deprecations
|
18
|
+
|
11
19
|
## [1.3.2] - 2018-02-18
|
12
20
|
### Enhancements
|
13
21
|
- Add Android emulator commands
|
data/appium_lib_core.gemspec
CHANGED
@@ -31,7 +31,8 @@ Gem::Specification.new do |spec|
|
|
31
31
|
spec.add_development_dependency 'minitest', '~> 5.0'
|
32
32
|
spec.add_development_dependency 'minitest-reporters', '~> 1.1'
|
33
33
|
spec.add_development_dependency 'webmock', '~> 3.1.0'
|
34
|
-
spec.add_development_dependency 'pry'
|
35
34
|
spec.add_development_dependency 'rubocop', '0.51.0'
|
36
35
|
spec.add_development_dependency 'appium_thor', '~> 0.0', '>= 0.0.7'
|
36
|
+
spec.add_development_dependency 'pry'
|
37
|
+
spec.add_development_dependency 'pry-byebug'
|
37
38
|
end
|
@@ -94,6 +94,94 @@ module Appium
|
|
94
94
|
def get_timeouts
|
95
95
|
@bridge.get_timeouts
|
96
96
|
end
|
97
|
+
|
98
|
+
# Retrieve the capabilities of the specified session
|
99
|
+
#
|
100
|
+
# @return [Selenium::WebDriver::Remote::Capabilities]
|
101
|
+
#
|
102
|
+
# @example
|
103
|
+
# @driver.session_capabilities
|
104
|
+
#
|
105
|
+
# #=> uiautomator2
|
106
|
+
# # <Selenium::WebDriver::Remote::W3C::Capabilities:0x007fa38dae1360
|
107
|
+
# # @capabilities=
|
108
|
+
# # {:proxy=>nil,
|
109
|
+
# # :browser_name=>nil,
|
110
|
+
# # :browser_version=>nil,
|
111
|
+
# # :platform_name=>"android",
|
112
|
+
# # :page_load_strategy=>nil,
|
113
|
+
# # :remote_session_id=>nil,
|
114
|
+
# # :accessibility_checks=>nil,
|
115
|
+
# # :profile=>nil,
|
116
|
+
# # :rotatable=>nil,
|
117
|
+
# # :device=>nil,
|
118
|
+
# # "platform"=>"LINUX",
|
119
|
+
# # "webStorageEnabled"=>false,
|
120
|
+
# # "takesScreenshot"=>true,
|
121
|
+
# # "javascriptEnabled"=>true,
|
122
|
+
# # "databaseEnabled"=>false,
|
123
|
+
# # "networkConnectionEnabled"=>true,
|
124
|
+
# # "locationContextEnabled"=>false,
|
125
|
+
# # "warnings"=>{},
|
126
|
+
# # "desired"=>
|
127
|
+
# # {"platformName"=>"android",
|
128
|
+
# # "automationName"=>"uiautomator2",
|
129
|
+
# # "app"=>"/path/to/app/api.apk",
|
130
|
+
# # "platformVersion"=>"8.1.0",
|
131
|
+
# # "deviceName"=>"Android Emulator",
|
132
|
+
# # "appPackage"=>"io.appium.android.apis",
|
133
|
+
# # "appActivity"=>"io.appium.android.apis.ApiDemos",
|
134
|
+
# # "someCapability"=>"some_capability",
|
135
|
+
# # "unicodeKeyboard"=>true,
|
136
|
+
# # "resetKeyboard"=>true},
|
137
|
+
# # "automationName"=>"uiautomator2",
|
138
|
+
# # "app"=>"/path/to/app/api.apk",
|
139
|
+
# # "platformVersion"=>"8.1.0",
|
140
|
+
# # "deviceName"=>"emulator-5554",
|
141
|
+
# # "appPackage"=>"io.appium.android.apis",
|
142
|
+
# # "appActivity"=>"io.appium.android.apis.ApiDemos",
|
143
|
+
# # "someCapability"=>"some_capability",
|
144
|
+
# # "unicodeKeyboard"=>true,
|
145
|
+
# # "resetKeyboard"=>true,
|
146
|
+
# # "deviceUDID"=>"emulator-5554",
|
147
|
+
# # "deviceScreenSize"=>"1080x1920",
|
148
|
+
# # "deviceScreenDensity"=>420,
|
149
|
+
# # "deviceModel"=>"Android SDK built for x86",
|
150
|
+
# # "deviceManufacturer"=>"Google",
|
151
|
+
# # "pixelRatio"=>2.625,
|
152
|
+
# # "statBarHeight"=>63,
|
153
|
+
# # "viewportRect"=>{"left"=>0, "top"=>63, "width"=>1080, "height"=>1731}}>
|
154
|
+
# #
|
155
|
+
# #=> XCUITest
|
156
|
+
# # <Selenium::WebDriver::Remote::W3C::Capabilities:0x007fb15dc01370
|
157
|
+
# # @capabilities=
|
158
|
+
# # {:proxy=>nil,
|
159
|
+
# # :browser_name=>"UICatalog",
|
160
|
+
# # :browser_version=>nil,
|
161
|
+
# # :platform_name=>"ios",
|
162
|
+
# # :page_load_strategy=>nil,
|
163
|
+
# # :remote_session_id=>nil,
|
164
|
+
# # :accessibility_checks=>nil,
|
165
|
+
# # :profile=>nil,
|
166
|
+
# # :rotatable=>nil,
|
167
|
+
# # :device=>"iphone",
|
168
|
+
# # "udid"=>"DED4DBAD-8E5E-4AD6-BDC4-E75CF9AD84D8",
|
169
|
+
# # "automationName"=>"XCUITest",
|
170
|
+
# # "app"=>"/path/to/app/UICatalog.app",
|
171
|
+
# # "platformVersion"=>"10.3",
|
172
|
+
# # "deviceName"=>"iPhone Simulator",
|
173
|
+
# # "useNewWDA"=>true,
|
174
|
+
# # "useJSONSource"=>true,
|
175
|
+
# # "someCapability"=>"some_capability",
|
176
|
+
# # "sdkVersion"=>"10.3.1",
|
177
|
+
# # "CFBundleIdentifier"=>"com.example.apple-samplecode.UICatalog",
|
178
|
+
# # "pixelRatio"=>2,
|
179
|
+
# # "statBarHeight"=>23.4375,
|
180
|
+
# # "viewportRect"=>{"left"=>0, "top"=>47, "width"=>750, "height"=>1287}}>
|
181
|
+
#
|
182
|
+
def session_capabilities
|
183
|
+
@bridge.session_capabilities
|
184
|
+
end
|
97
185
|
end # class Driver
|
98
186
|
end # class Base
|
99
187
|
end # module Core
|
@@ -107,7 +107,10 @@ module Appium
|
|
107
107
|
|
108
108
|
get_timeouts: [:get, 'session/:session_id/timeouts'.freeze],
|
109
109
|
|
110
|
-
## Add OSS commands to W3C commands
|
110
|
+
## Add OSS commands to W3C commands. We can remove them if we would like to remove them from W3C module.
|
111
|
+
### Session capability
|
112
|
+
get_capabilities: [:get, 'session/:session_id'.freeze],
|
113
|
+
|
111
114
|
### rotatable
|
112
115
|
get_screen_orientation: [:get, 'session/:session_id/orientation'.freeze],
|
113
116
|
set_screen_orientation: [:post, 'session/:session_id/orientation'.freeze],
|
@@ -131,6 +131,7 @@ module Appium
|
|
131
131
|
|
132
132
|
# @!method device_time
|
133
133
|
# Get the time on the device
|
134
|
+
#
|
134
135
|
# @return [String]
|
135
136
|
#
|
136
137
|
# @example
|
@@ -140,6 +141,7 @@ module Appium
|
|
140
141
|
|
141
142
|
# @!method toggle_location_services
|
142
143
|
# Switch the state of the location service
|
144
|
+
#
|
143
145
|
# @return [String]
|
144
146
|
#
|
145
147
|
# @example
|
@@ -148,7 +150,8 @@ module Appium
|
|
148
150
|
#
|
149
151
|
|
150
152
|
# @!method toggle_wifi
|
151
|
-
# Switch the state of the wifi service
|
153
|
+
# Switch the state of the wifi service only for Android
|
154
|
+
#
|
152
155
|
# @return [String]
|
153
156
|
#
|
154
157
|
# @example
|
@@ -157,7 +160,8 @@ module Appium
|
|
157
160
|
#
|
158
161
|
|
159
162
|
# @!method toggle_data
|
160
|
-
# Switch the state of data service
|
163
|
+
# Switch the state of data service only for Android, and the device should be rooted
|
164
|
+
#
|
161
165
|
# @return [String]
|
162
166
|
#
|
163
167
|
# @example
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Appium
|
2
2
|
module Core
|
3
|
-
VERSION = '1.3.
|
4
|
-
DATE = '2018-
|
3
|
+
VERSION = '1.3.3'.freeze unless defined? ::Appium::Core::VERSION
|
4
|
+
DATE = '2018-03-03'.freeze unless defined? ::Appium::Core::DATE
|
5
5
|
end
|
6
6
|
end
|
data/release_notes.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
#### v1.3.3 2018-03-03
|
2
|
+
|
3
|
+
- [bf9a6a3](https://github.com/appium/ruby_lib_core/commit/bf9a6a357f7c318fd3aae489552964e6dc847a8e) Release 1.3.3
|
4
|
+
- [a7cf0b2](https://github.com/appium/ruby_lib_core/commit/a7cf0b2129d83723c58667e431162997fff42eb0) Add session capabilities w3cmodule (#62)
|
5
|
+
- [3947064](https://github.com/appium/ruby_lib_core/commit/3947064b831d4dc390cbf8e07cf4f04d68067c87) introduce pry-byebug
|
6
|
+
- [e919a4e](https://github.com/appium/ruby_lib_core/commit/e919a4ed95e892e082b925e4ab878de33eca0b3d) append some limitations
|
7
|
+
|
8
|
+
|
1
9
|
#### v1.3.2 2018-02-18
|
2
10
|
|
3
11
|
- [28e04a7](https://github.com/appium/ruby_lib_core/commit/28e04a743905cfee5b3be1487ffe5f852a387ba4) Release 1.3.2
|
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.3.
|
4
|
+
version: 1.3.3
|
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-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: selenium-webdriver
|
@@ -122,20 +122,6 @@ dependencies:
|
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: 3.1.0
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: pry
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - ">="
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '0'
|
132
|
-
type: :development
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - ">="
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '0'
|
139
125
|
- !ruby/object:Gem::Dependency
|
140
126
|
name: rubocop
|
141
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -170,6 +156,34 @@ dependencies:
|
|
170
156
|
- - ">="
|
171
157
|
- !ruby/object:Gem::Version
|
172
158
|
version: 0.0.7
|
159
|
+
- !ruby/object:Gem::Dependency
|
160
|
+
name: pry
|
161
|
+
requirement: !ruby/object:Gem::Requirement
|
162
|
+
requirements:
|
163
|
+
- - ">="
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: '0'
|
166
|
+
type: :development
|
167
|
+
prerelease: false
|
168
|
+
version_requirements: !ruby/object:Gem::Requirement
|
169
|
+
requirements:
|
170
|
+
- - ">="
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: '0'
|
173
|
+
- !ruby/object:Gem::Dependency
|
174
|
+
name: pry-byebug
|
175
|
+
requirement: !ruby/object:Gem::Requirement
|
176
|
+
requirements:
|
177
|
+
- - ">="
|
178
|
+
- !ruby/object:Gem::Version
|
179
|
+
version: '0'
|
180
|
+
type: :development
|
181
|
+
prerelease: false
|
182
|
+
version_requirements: !ruby/object:Gem::Requirement
|
183
|
+
requirements:
|
184
|
+
- - ">="
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
version: '0'
|
173
187
|
description: Minimal Ruby library for Appium.
|
174
188
|
email:
|
175
189
|
- fly.49.89.over@gmail.com
|