appium_lib_core 4.2.0 → 4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9668fe14e164d0c0c79f9d651fbc1452b0ec736965bc6da01791ea47153bc1b0
4
- data.tar.gz: 141ee5425f08eef464d40b6fef0c1a396a5d382576100718f6d3efee1842fac0
3
+ metadata.gz: a3f77d23abb2c69ab5b4f5f733a9b901002f8d5fe24e8b99ad8ef03df1dcad99
4
+ data.tar.gz: 7acc05e37be676c753e2c0d7519c9882d13eb55bdef32678dd3b44458120e487
5
5
  SHA512:
6
- metadata.gz: bda31b12a734ce4d95d4f13517f50e3fe69deb34596a7d3cba326191325c9e42825e9dafd65975ba6a6bf65f45432698e370aa1f848f37507c15ff7a2d5237c8
7
- data.tar.gz: e69702c72a42d84ca442294afb91087e195fb8f326a051a2796d3b829c6dd5ba143d51574ed3d14caae0f3fe2a318c86db80b23d484343bee930104ef9986742
6
+ metadata.gz: 3ea82009235de78bedd7a03e4de1021fed4fcb5a21a878697fe4b3dde281d1d36976a2cc6e63dc5d2735cabbe8328f49de3d06f1568ffc48eebbb80144c69d5a
7
+ data.tar.gz: 4bee50ff9e195d09b634a3ff7420d04ca1ab896d26d9523a40f20ae2db7c6d2d4b81450dee4f2b0e225599e9e1a774c0e5cb19acc6d89bfeb01bd859caecfe6e
@@ -10,6 +10,11 @@ Read `release_notes.md` for commit level details.
10
10
 
11
11
  ### Deprecations
12
12
 
13
+ ## [4.2.1] - 2021-01-10
14
+
15
+ ### Enhancements
16
+ - Refactor routable
17
+
13
18
  ## [4.2.0] - 2021-01-02
14
19
 
15
20
  ### Enhancements
@@ -17,10 +22,6 @@ Read `release_notes.md` for commit level details.
17
22
  - `Element#screenshot_as` and `Element#save_screenshot` are same as `Driver#element_screenshot_as` and `Driver#save_element_screenshot`
18
23
  - `Element#screenshot` is same as `Element#screenshot_as(:base64)`
19
24
 
20
- ### Bug fixes
21
-
22
- ### Deprecations
23
-
24
25
  ## [4.1.1] - 2020-12-25
25
26
 
26
27
  ### Enhancements
@@ -28,59 +29,35 @@ Read `release_notes.md` for commit level details.
28
29
  - Arguments in `@driver.execute_cdp`
29
30
  - It should be like `@driver.execute_cdp 'Page.captureScreenshot', quality: 50, format: 'jpeg'` as keyword arguments
30
31
  instead of `@driver.execute_cdp 'Page.captureScreenshot', { quality: 50, format: 'jpeg' }` in Ruby 3
31
-
32
- ### Bug fixes
33
-
34
- ### Deprecations
35
32
 
36
33
  ## [4.0.0] - 2020-12-19
37
34
 
38
35
  Supported Ruby version is 2.4+
39
36
 
40
- ### Enhancements
41
-
42
- ### Bug fixes
43
-
44
37
  ### Deprecations
45
38
  - No longer work with `forceMjsonwp` capability to force the session MJSONWP
46
39
 
47
40
  ## [3.11.1] - 2020-11-20
48
41
 
49
- ### Enhancements
50
-
51
42
  ### Bug fixes
52
43
  - Fix `install_app` to be able to set no args for options
53
44
 
54
- ### Deprecations
55
-
56
45
  ## [3.11.0] - 2020-08-01
57
46
 
58
47
  ### Enhancements
59
48
  - Security update [GHSA-2v5c-755p-p4gv](https://github.com/advisories/GHSA-2v5c-755p-p4gv)
60
49
  - Affects only _::Appium::Core::WebSocket_
61
50
 
62
- ### Bug fixes
63
-
64
- ### Deprecations
65
-
66
51
  ## [3.10.1] - 2020-06-29
67
52
 
68
- ### Enhancements
69
-
70
53
  ### Bug fixes
71
54
  - Fix duplication warning of `execute_cdp`
72
55
 
73
- ### Deprecations
74
-
75
56
  ## [3.10.0] - 2020-06-09
76
57
 
77
58
  ### Enhancements
78
59
  - Remove deprecated `Selenium::WebDriver::Error::TimeOutError`
79
60
 
80
- ### Bug fixes
81
-
82
- ### Deprecations
83
-
84
61
  ## [3.9.0] - 2020-05-31
85
62
 
86
63
  ### Enhancements
@@ -99,10 +76,6 @@ Supported Ruby version is 2.4+
99
76
  @driver = Appium::Core.for(opts).start_driver
100
77
  ```
101
78
 
102
- ### Bug fixes
103
-
104
- ### Deprecations
105
-
106
79
  ## [3.8.0] - 2020-05-17
107
80
 
108
81
  ### Enhancements
@@ -112,8 +85,6 @@ Supported Ruby version is 2.4+
112
85
  ### Bug fixes
113
86
  - Fix `x-idempotency-key` header to add it only in new session request (https://github.com/appium/ruby_lib_core/issues/262)
114
87
 
115
- ### Deprecations
116
-
117
88
  ## [3.7.0] - 2020-04-18
118
89
 
119
90
  ### Enhancements
@@ -122,76 +93,44 @@ Supported Ruby version is 2.4+
122
93
  - Add chrome devtools endpoint which is available chrome module in Selenium Ruby binding
123
94
  - https://github.com/appium/appium-base-driver/pull/405
124
95
 
125
- ### Bug fixes
126
-
127
- ### Deprecations
128
-
129
96
  ## [3.6.1, 3.6.0] - 2020-03-15
130
97
 
131
98
  ### Enhancements
132
99
  - Add screen record feature for Windows driver (https://github.com/appium/appium-windows-driver/pull/66)
133
100
  - `#start_recording_screen`, `#stop_recording_screen`
134
101
 
135
- ### Bug fixes
136
-
137
- ### Deprecations
138
-
139
102
  ## [3.5.0] - 2020-01-11
140
103
 
141
104
  ### Enhancements
142
105
  - Add `:viewmatcher` selector like `@driver.find_elements :view_matcher, { name: 'withText', args: %w(Accessibility), class: 'androidx.test.espresso.matcher.ViewMatchers' }`
143
106
 
144
- ### Bug fixes
145
-
146
- ### Deprecations
147
-
148
107
  ## [3.4.2] - 2019-12-29
149
108
 
150
109
  ### Enhancements
151
110
  - Add `attr_reader :bridge` for flutter driver not to use `send`
152
111
  - https://github.com/truongsinh/appium-flutter-driver/pull/35
153
112
 
154
- ### Bug fixes
155
-
156
- ### Deprecations
157
-
158
113
  ## [3.4.0, 3.4.1] - 2019-12-26, 2019-12-27
159
114
 
160
115
  ### Enhancements
161
116
  - Fix Ruby 2.7 warnings
162
117
 
163
- ### Bug fixes
164
-
165
- ### Deprecations
166
-
167
118
  ## [3.3.0] - 2019-11-08
168
119
 
169
120
  ### Enhancements
170
121
  - Add `Logs#event` to post a custom log by `@driver.logs.event vendor: 'appium', event: 'funEvent'`
171
122
  - Add `Logs#events` to get events by `@driver.logs.events`. It is equal to `@driver.session_capabilities['events']`
172
123
 
173
- ### Bug fixes
174
-
175
- ### Deprecations
176
-
177
124
  ## [3.2.3] - 2019-09-30
178
125
 
179
126
  ### Enhancements
180
127
  - Add `system_bars` as an alias to `get_system_bars`
181
128
 
182
- ### Bug fixes
183
-
184
- ### Deprecations
185
-
186
129
  ## [3.2.2] - 2019-08-04
187
130
 
188
- ### Enhancements
189
-
190
131
  ### Bug fixes
191
132
  - Fixed parameters of `remove_app`
192
133
 
193
- ### Deprecations
194
-
195
134
  ## [3.2.1] - 2019-07-19
196
135
 
197
136
  ### Enhancements
@@ -213,39 +152,23 @@ Supported Ruby version is 2.4+
213
152
  - Add `execute_driver` to run a batch script
214
153
  - It requires Appium version which has `execute_driver` support
215
154
 
216
- ### Bug fixes
217
-
218
- ### Deprecations
219
-
220
155
  ## [3.1.3] - 2019-06-18
221
156
 
222
157
  ### Enhancements
223
158
  - Add arguments for `start_activity`
224
159
  - `intentAction`, `intentCategory`, `intentFlags`, `dontStopAppOnReset`
225
160
 
226
- ### Bug fixes
227
-
228
- ### Deprecations
229
-
230
161
  ## [3.1.2] - 2019-05-10
231
162
 
232
163
  ### Enhancements
233
164
  - Add `sessions` command to get all available sessions on the Appium server
234
165
  - [internal] Tweak error messages in emulator module
235
166
 
236
- ### Bug fixes
237
-
238
- ### Deprecations
239
-
240
167
  ## [3.1.1] - 2019-04-26
241
168
 
242
169
  ### Enhancements
243
170
  - [internal] Catch `Selenium::WebDriver::Error::TimeoutError` which will be used instead of `Selenium::WebDriver::Error::TimeOutError`
244
171
 
245
- ### Bug fixes
246
-
247
- ### Deprecations
248
-
249
172
  ## [3.1.0] - 2019-03-31
250
173
 
251
174
  ### Enhancements
@@ -253,28 +176,16 @@ Supported Ruby version is 2.4+
253
176
  - `platformName: :tvos, automationName: :xcuitest` can work for iOS tvOS
254
177
  - It requires Appium 1.13
255
178
 
256
- ### Bug fixes
257
-
258
- ### Deprecations
259
-
260
179
  ## [3.0.4] - 2019-03-24
261
180
 
262
181
  ### Enhancements
263
182
  - Add `pixelFormat` argument in screen record for iOS
264
183
 
265
- ### Bug fixes
266
-
267
- ### Deprecations
268
-
269
184
  ## [3.0.3] - 2019-03-11
270
185
 
271
186
  ### Enhancements
272
187
  - [internal] Bump Rubocop target Ruby version to Ruby 2.3
273
188
 
274
- ### Bug fixes
275
-
276
- ### Deprecations
277
-
278
189
  ## [3.0.2] - 2019-03-07
279
190
 
280
191
  ### Enhancements
@@ -284,17 +195,11 @@ Supported Ruby version is 2.4+
284
195
  - [internal] Fixed typo in `Emulator#gsm_signal` [#196](https://github.com/appium/ruby_lib_core/pull/196)
285
196
  - Thanks [khanhdodang](https://github.com/khanhdodang)
286
197
 
287
- ### Deprecations
288
-
289
198
  ## [3.0.1] - 2019-02-25
290
199
 
291
200
  ### Enhancements
292
201
  - Add `:data_matcher` find_element/s attribute [appium-espresso-driver#386](https://github.com/appium/appium-espresso-driver/pull/386)
293
202
 
294
- ### Bug fixes
295
-
296
- ### Deprecations
297
-
298
203
  ## [3.0.0] - 2019-02-06
299
204
 
300
205
  This release has a breaking change about an implicit wait.
@@ -320,8 +225,6 @@ The behaviour follows the default spec in WebDriver.
320
225
  ### Bug fixes
321
226
  - Fix potential override of `AppManagement#background_app` [#188](https://github.com/appium/ruby_lib_core/pull/188)
322
227
 
323
- ### Deprecations
324
-
325
228
  ## [2.3.4] - 2019-01-31
326
229
  ### Enhancements
327
230
  - Add 3D touch option for `TouchAction#press` [appium/WebDriverAgent#79](https://github.com/appium/WebDriverAgent/pull/79)
@@ -330,16 +233,10 @@ The behaviour follows the default spec in WebDriver.
330
233
  ### Bug fixes
331
234
  - Stop sending blank value in `start_activity`
332
235
 
333
- ### Deprecations
334
-
335
236
  ## [2.3.3] - 2019-01-22
336
- ### Enhancements
337
-
338
237
  ### Bug fixes
339
238
  - Add `*args, &block` in method missing in `Selenium::WebDriver::Element` [#184](https://github.com/appium/ruby_lib_core/pull/184)
340
239
 
341
- ### Deprecations
342
-
343
240
  ## [2.3.2] - 2019-01-20
344
241
  ### Enhancements
345
242
  - Add alias for some method calls
@@ -350,18 +247,12 @@ The behaviour follows the default spec in WebDriver.
350
247
  ### Bug fixes
351
248
  - `ServerError` inherits `CoreError` in order to handle it as an exception
352
249
 
353
- ### Deprecations
354
-
355
250
  ## [2.3.1] - 2019-01-13
356
251
  ### Enhancements
357
252
  - `set_network_connection` accepts keys as same as `network_connection_type` in addition to numbers
358
253
  - `{ :airplane_mode: 1, wifi: 2, data: 4, all: 6, none: 0 }`
359
254
  - Read [documentation](https://www.rubydoc.info/github/appium/ruby_lib_core/master/Appium/Core/Android/Device#set_network_connection-instance_method) more
360
255
 
361
- ### Bug fixes
362
-
363
- ### Deprecations
364
-
365
256
  ## [2.3.0] - 2019-01-07
366
257
  ### Enhancements
367
258
  - Use `Base64.strict_encode64` when this client sends `Base64` encoded data to server
@@ -369,33 +260,19 @@ The behaviour follows the default spec in WebDriver.
369
260
  - Continues to decode base 64 data following `decode64` to accept RFC 2045 format
370
261
  - Add `query_app_state` as an alias of `app_state` to get application status
371
262
 
372
- ### Bug fixes
373
-
374
- ### Deprecations
375
-
376
263
  ## [2.2.2] - 2018-12-22
377
264
  ### Enhancements
378
265
  - Append `appium` in header: `appium/ruby_lib_core/2.2.1 (selenium/3.141.0 (ruby macosx))`
379
266
 
380
- ### Bug fixes
381
-
382
- ### Deprecations
383
-
384
267
  ## [2.2.1] - 2018-12-08
385
- ### Enhancements
386
-
387
268
  ### Bug fixes
388
269
  - Reduce warnings for method definitions
389
270
 
390
- ### Deprecations
391
-
392
271
  ## [2.2.0] - 2018-12-01
393
272
  ### Enhancements
394
273
  - Add `::Appium::Core::Base.platform` to call `::Selenium::WebDriver::Platform`
395
274
  - Can identify platform using `::Appium::Core::Base.platform.windows?` for example
396
275
 
397
- ### Bug fixes
398
-
399
276
  ### Deprecations
400
277
  - `:offset_x` and `:offset_y` in `TouchAction#swipe` is deprecated in favor of `:end_x` and `:end_y`
401
278
 
@@ -414,10 +291,6 @@ The behaviour follows the default spec in WebDriver.
414
291
  - Update `start_recording_screen` for iOS, Appium 1.10.0
415
292
  - Add `:video_scale` and update `:video_type`
416
293
 
417
- ### Bug fixes
418
-
419
- ### Deprecations
420
-
421
294
  ## [2.1.0] - 2018-11-14
422
295
  ### Enhancements
423
296
  - Support below style _1_, has _url_ parameter, in addition to style _2_
@@ -430,27 +303,15 @@ The behaviour follows the default spec in WebDriver.
430
303
  ```
431
304
  - Add `:video_fps` param for screen recording in iOS(XCUITest) to sync with Appium 1.10.0
432
305
 
433
- ### Bug fixes
434
-
435
- ### Deprecations
436
-
437
306
  ## [2.0.6] - 2018-11-08
438
307
  ### Enhancements
439
308
  - Allow selenium update following Pi versioning like 3.141.0
440
309
  - [internal] Update dev libraries
441
310
 
442
- ### Bug fixes
443
-
444
- ### Deprecations
445
-
446
311
  ## [2.0.5] - 2018-10-30
447
312
  ### Enhancements
448
313
  - [internal] No longer send `strategy: :tapOutside` as default value in Android
449
314
 
450
- ### Bug fixes
451
-
452
- ### Deprecations
453
-
454
315
  ## [2.0.4] - 2018-10-19
455
316
  ### Enhancements
456
317
  - Add custom locator in the future work: [element-finding-plugins](https://github.com/appium/appium/blob/master/docs/en/advanced-concepts/element-finding-plugins.md)
@@ -460,27 +321,15 @@ The behaviour follows the default spec in WebDriver.
460
321
 
461
322
  ```
462
323
 
463
- ### Bug fixes
464
-
465
- ### Deprecations
466
-
467
324
  ## [2.0.3] - 2018-10-11
468
325
  ### Enhancements
469
326
  - Set `'selenium-webdriver', '~> 3.14.1'`
470
327
 
471
- ### Bug fixes
472
-
473
- ### Deprecations
474
-
475
328
  ## [2.0.2] - 2018-10-02
476
329
  ### Enhancements
477
330
  - Add finger print feature for Android emulators [#13](https://github.com/appium/ruby_lib_core/issues/13)
478
331
  - Add `keyboard_shown?` and `context=` as aliases of `is_keyboard_shown` and `set_contex`
479
332
 
480
- ### Bug fixes
481
-
482
- ### Deprecations
483
-
484
333
  ## [2.0.1] - 2018-09-01
485
334
  ### Enhancements
486
335
  - Add `Appium::Core::Base::Driver#perform_actions` to send multiple actions. See `test_multiple_actions` as an example.
@@ -488,8 +337,6 @@ The behaviour follows the default spec in WebDriver.
488
337
  ### Bug fixes
489
338
  - Fix desired capability for W3C protocol under selenium grid environment [#137](https://github.com/appium/ruby_lib_core/issues/137)
490
339
 
491
- ### Deprecations
492
-
493
340
  ## [2.0.0] - 2018-08-25
494
341
 
495
342
  This release has a breaking change for creating core. Thus, I've bumped the major version.
@@ -497,20 +344,14 @@ This release has a breaking change for creating core. Thus, I've bumped the majo
497
344
  ### Enhancements
498
345
  - use `autoload` to load Android/iOS modules
499
346
 
500
- ### Bug fixes
501
-
502
347
  ### Deprecations
503
348
  - `@core = Appium::Core.for(self, opts)` is deprecated in favor of `@core = Appium::Core.for(opts)`
504
349
  - Call `extend Appium::Core::Device` if you'd like to extend methods defined in `Appium::Core`
505
350
  - Read [#816](https://github.com/appium/ruby_lib/pull/816) as an example
506
351
 
507
352
  ## [1.9.2] - 2018-08-23
508
- ### Enhancements
509
-
510
353
  ### Bug fixes
511
- - fix unexpedted method missing against `:to_hash` in Element
512
-
513
- ### Deprecations
354
+ - fix unexpected method missing against `:to_hash` in Element
514
355
 
515
356
  ## [1.9.1] - 2018-08-20
516
357
  ### Enhancements
@@ -520,8 +361,6 @@ This release has a breaking change for creating core. Thus, I've bumped the majo
520
361
  ### Bug fixes
521
362
  - [internal] Fix raising error in `set_implicit_wait_by_default` [#130](https://github.com/appium/ruby_lib_core/issues/130)
522
363
 
523
- ### Deprecations
524
-
525
364
  ## [1.9.0] - 2018-08-05
526
365
  ### Enhancements
527
366
  - Update documentation about `start_recording_screen`
@@ -529,8 +368,6 @@ This release has a breaking change for creating core. Thus, I've bumped the majo
529
368
  - Support `find_element/s :image, partial_image` [#119](https://github.com/appium/ruby_lib_core/pull/119)
530
369
  - Requires `selenium-webdriver 3.14+` because of W3C actions [#115](https://github.com/appium/ruby_lib_core/pull/115)
531
370
 
532
- ### Bug fixes
533
-
534
371
  ### Deprecations
535
372
  - [Internal] Deprecate experimental `ImageElement` in favor of `Element`
536
373
 
@@ -540,10 +377,6 @@ This release has a breaking change for creating core. Thus, I've bumped the majo
540
377
  - Use method missing to get attributes like `e.resource_id` instead of `e.attribute 'resource-id'` [#116](https://github.com/appium/ruby_lib_core/pull/116)
541
378
  - Set `'~> 3.5', '< 3.14'`
542
379
 
543
- ### Bug fixes
544
-
545
- ### Deprecations
546
-
547
380
  ## [1.8.3] - 2018-07-20
548
381
  ### Enhancements
549
382
  - Relax the logic of `:app` capability
@@ -551,11 +384,7 @@ This release has a breaking change for creating core. Thus, I've bumped the majo
551
384
  ### Bug fixes
552
385
  - Fix `within_context`
553
386
 
554
- ### Deprecations
555
-
556
387
  ## [1.8.2] - 2018-07-17
557
- ### Enhancements
558
-
559
388
  ### Bug fixes
560
389
  - Available packages over HTTP [#106](https://github.com/appium/ruby_lib_core/issues/106)
561
390
 
@@ -563,23 +392,15 @@ This release has a breaking change for creating core. Thus, I've bumped the majo
563
392
  - Remove warning of camelCase capability for W3C format
564
393
 
565
394
  ## [1.8.1] - 2018-07-13
566
- ### Enhancements
567
-
568
395
  ### Bug fixes
569
396
  - Fix including search context in `::Selenium::WebDriver::Elemenet`
570
397
  - `include ::Appium::Core::Base::SearchContext` instead of `::Selenium::WebDriver::SearchContext`
571
398
 
572
- ### Deprecations
573
-
574
399
  ## [1.8.0] - 2018-07-07
575
400
  ### Enhancements
576
401
  - Add Tizen case
577
402
  - [Internal] reduce method definition by `add_endpoint_method`
578
403
 
579
- ### Bug fixes
580
-
581
- ### Deprecations
582
-
583
404
  ## [1.7.2] - 2018-06-23
584
405
  ### Enhancements
585
406
  - Add `find_element_by_image` and `find_elements_by_image` to handle `ImageElement`
@@ -588,10 +409,6 @@ This release has a breaking change for creating core. Thus, I've bumped the majo
588
409
  - Experimental feature
589
410
  - [Internal] Define screenshot methods in appium_lib_core instead of Selenium's one
590
411
 
591
- ### Bug fixes
592
-
593
- ### Deprecations
594
-
595
412
  ## [1.7.1] - 2018-06-15
596
413
  ### Enhancements
597
414
  - Add a `format` argument for `device_time` [#94](https://github.com/appium/ruby_lib_core/pull/94)
@@ -599,8 +416,6 @@ This release has a breaking change for creating core. Thus, I've bumped the majo
599
416
  ### Bug fixes
600
417
  - Return empty array `[]` for find_elements
601
418
 
602
- ### Deprecations
603
-
604
419
  ## [1.7.0] - 2018-05-28
605
420
  ### Enhancements
606
421
  - Has one **Breaking Change**
@@ -613,10 +428,6 @@ This release has a breaking change for creating core. Thus, I've bumped the majo
613
428
  - [Internal] Change directory and file structure
614
429
  - [Internal] Set default content-type
615
430
 
616
- ### Bug fixes
617
-
618
- ### Deprecations
619
-
620
431
  ## [1.6.0] - 2018-05-08
621
432
  ### Enhancements
622
433
  - **Breaking Change**
@@ -628,36 +439,22 @@ This release has a breaking change for creating core. Thus, I've bumped the majo
628
439
  - add `battery_info` to get battery information
629
440
  - add `is_keyboard_shown` for iOS ( see also https://github.com/appium/appium-xcuitest-driver/pull/664/files )
630
441
 
631
- ### Bug fixes
632
-
633
- ### Deprecations
634
-
635
442
  ## [1.5.1] - 2018-04-25
636
- ### Enhancements
637
-
638
443
  ### Bug fixes
639
444
  - Revert timeout logic in `1.4.1`
640
445
 
641
- ### Deprecations
642
-
643
446
  ## [1.5.0] - 2018-04-25
644
447
  ### Enhancements
645
448
  - [internal] Remove hot fix for XCUITest action
646
449
 
647
- ### Bug fixes
648
-
649
450
  ### Deprecations
650
451
  - Changed the name of arguments
651
452
  - `swipe(start_x:, start_y:, end_x:, end_y:)` instead of `swipe(start_x:, start_y:, offset_x:, offset_y:)`
652
453
 
653
454
  ## [1.4.2] - 2018-04-22
654
- ### Enhancements
655
-
656
455
  ### Bug fixes
657
456
  - Revert `delegate_from_appium_driver` for `ruby_lib` compatibility
658
457
 
659
- ### Deprecations
660
-
661
458
  ## [1.4.1] - 2018-04-22
662
459
  ### Enhancements
663
460
  - add base image comparison
@@ -666,54 +463,30 @@ This release has a breaking change for creating core. Thus, I've bumped the majo
666
463
  - Raise `::Appium::Core::Wait::TimeoutError` instead of `::Selenium::WebDriver::Error::TimeOutError`
667
464
  - [internal] Separate mjsonwp commands module and w3c commands module from one command module
668
465
 
669
- ### Bug fixes
670
-
671
- ### Deprecations
672
-
673
466
  ## [1.4.0] - 2018-04-15
674
467
  ### Enhancements
675
468
  - Add a support for WebSocket client based on Faye::WebSocket::Client [#74](https://github.com/appium/ruby_lib_core/pull/74)
676
469
 
677
- ### Bug fixes
678
-
679
- ### Deprecations
680
-
681
470
  ## [1.3.8] - 2018-04-12
682
471
  ### Enhancements
683
472
  - Make no-argument commands friendly for IDE
684
473
 
685
- ### Bug fixes
686
-
687
- ### Deprecations
688
-
689
474
  ## [1.3.7] - 2018-04-02
690
475
  ### Enhancements
691
476
  - Only for `ruby_lib_core` internal process
692
477
  - Remove `touch` action by default and following `selenium-webdriver` in W3C action.
693
478
  - Since XCUITest and UA2 drivers force handling the pointer as `touch`.
694
479
 
695
- ### Bug fixes
696
-
697
- ### Deprecations
698
-
699
480
  ## [1.3.6] - 2018-04-01
700
481
  ### Enhancements
701
482
  - Be able to change `kind` in W3C touch action.
702
483
  - Read: https://github.com/appium/ruby_lib_core/blob/master/lib/appium_lib_core/common/base/bridge/w3c.rb#L29
703
484
 
704
- ### Bug fixes
705
-
706
- ### Deprecations
707
-
708
485
  ## [1.3.5] - 2018-03-30
709
486
  ### Enhancements
710
487
  - Add a `bug_report` option in `start_recording_screen`, Android
711
488
  - Add clipboard apis [#69](https://github.com/appium/ruby_lib_core/pull/69)
712
489
 
713
- ### Bug fixes
714
-
715
- ### Deprecations
716
-
717
490
  ## [1.3.4] - 2018-03-21
718
491
  ### Enhancements
719
492
  - Add `save_viewport_screenshot` which get screenshot except for status bar.
@@ -723,16 +496,10 @@ This release has a breaking change for creating core. Thus, I've bumped the majo
723
496
  ### Bug fixes
724
497
  - Fix _create_session attempt to throw non-existent error type Appium::Core::Error::WebDriverError_ [#66](https://github.com/appium/ruby_lib_core/issues/66)
725
498
 
726
- ### Deprecations
727
-
728
499
  ## [1.3.3] - 2018-03-03
729
500
  ### Enhancements
730
501
  - add `session_capabilities`: https://appium.io/docs/en/commands/session/get/
731
502
 
732
- ### Bug fixes
733
-
734
- ### Deprecations
735
-
736
503
  ## [1.3.2] - 2018-02-18
737
504
  ### Enhancements
738
505
  - Add Android emulator commands
@@ -740,10 +507,6 @@ This release has a breaking change for creating core. Thus, I've bumped the majo
740
507
  - Add toggles
741
508
  - `toggle_location_services`, `toggle_wifi`, `toggle_data`
742
509
 
743
- ### Bug fixes
744
-
745
- ### Deprecations
746
-
747
510
  ## [1.3.1] - 2018-02-14
748
511
  ### Enhancements
749
512
  - add some app management commands [#58](https://github.com/appium/ruby_lib_core/pull/58)
@@ -765,10 +528,6 @@ This release has a breaking change for creating core. Thus, I've bumped the majo
765
528
  .perform
766
529
  ```
767
530
 
768
- ### Bug fixes
769
-
770
- ### Deprecations
771
-
772
531
  ## [1.3.0] - 2018-01-28
773
532
  ### Enhancements
774
533
  - `start_recording_screen`/`stop_recording_screen` support iOS from `Appium 1.8.0` [#48](https://github.com/appium/ruby_lib_core/issues/48)
@@ -776,10 +535,6 @@ This release has a breaking change for creating core. Thus, I've bumped the majo
776
535
  - `start_recording_screen`
777
536
  - The argument, `file_path`, was removed.
778
537
 
779
- ### Bug fixes
780
-
781
- ### Deprecations
782
-
783
538
  ## [1.2.7] - 2018-01-25
784
539
  ### Enhancements
785
540
  - Print warning messages to use camelCase if capability key names are snake_case
@@ -788,8 +543,6 @@ This release has a breaking change for creating core. Thus, I've bumped the majo
788
543
  ### Bug fixes
789
544
  - Make `@driver.automation_name` downcase [#50](https://github.com/appium/ruby_lib_core/issues/50)
790
545
 
791
- ### Deprecations
792
-
793
546
  ## [1.2.6] - 2018-01-21
794
547
  ### Enhancements
795
548
  - Add `window_rect`
@@ -797,17 +550,11 @@ This release has a breaking change for creating core. Thus, I've bumped the majo
797
550
  ### Bug fixes
798
551
  - Make `@driver.automation_name` symbol when someone define the `automationName` with the server argument. [#50](https://github.com/appium/ruby_lib_core/issues/50)
799
552
 
800
- ### Deprecations
801
-
802
553
  ## [1.2.5] - 2018-01-13
803
554
  ### Enhancements
804
555
  - Enhance W3C support
805
556
  - Timeout related methods
806
557
 
807
- ### Bug fixes
808
-
809
- ### Deprecations
810
-
811
558
  ## [1.2.4] - 2018-01-03
812
559
  ### Enhancements
813
560
  - Refactor `create_session` in `Appium::Core::Base::Bridge`
@@ -819,34 +566,18 @@ This release has a breaking change for creating core. Thus, I've bumped the majo
819
566
  - Read `lib/appium_lib_core/common/base/w3c_bridge.rb` for more details
820
567
  - Can get logs like `driver.logs.available_types` and `driver.logs.get`
821
568
 
822
- ### Bug fixes
823
-
824
- ### Deprecations
825
-
826
569
  ## [1.2.3] - 2017-12-27
827
- ### Enhancements
828
-
829
570
  ### Bug fixes
830
571
  - Fix some w3c methods to work with Appium part 2 [#38](https://github.com/appium/ruby_lib_core/pull/38)
831
572
 
832
- ### Deprecations
833
-
834
573
  ## [1.2.2] - 2017-12-25
835
- ### Enhancements
836
-
837
574
  ### Bug fixes
838
575
  - Fix some w3c methods to work with Appium [#37](https://github.com/appium/ruby_lib_core/pull/37)
839
576
 
840
- ### Deprecations
841
-
842
577
  ## [1.2.1] - 2017-12-23
843
578
  ### Enhancements
844
579
  - override default duration to make some action fast [#36](https://github.com/appium/ruby_lib_core/pull/36)
845
580
 
846
- ### Bug fixes
847
-
848
- ### Deprecations
849
-
850
581
  ## [1.2.0] - 2017-12-23
851
582
  ### Enhancements
852
583
  - Append `appium:` prefix for capabilities automatically due to W3C format.
@@ -855,10 +586,6 @@ This release has a breaking change for creating core. Thus, I've bumped the majo
855
586
  - IME related
856
587
  - Touch actions based on W3C spec
857
588
 
858
- ### Bug fixes
859
-
860
- ### Deprecations
861
-
862
589
  ## [1.1.0] - 2017-12-16
863
590
  ### Enhancements
864
591
  - Add guidelines in `.github`
@@ -867,8 +594,6 @@ This release has a breaking change for creating core. Thus, I've bumped the majo
867
594
  ### Bug fixes
868
595
  - fix creating sessions [#31](https://github.com/appium/ruby_lib_core/pull/31) for W3C creating sessions
869
596
 
870
- ### Deprecations
871
-
872
597
  ## [1.0.0] - 2017-11-12
873
598
 
874
599
  Initial release
@@ -31,7 +31,7 @@ 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.11.0'
34
- spec.add_development_dependency 'rubocop', '1.7.0'
34
+ spec.add_development_dependency 'rubocop', '1.8.0'
35
35
  spec.add_development_dependency 'appium_thor', '~> 1.0'
36
36
  spec.add_development_dependency 'pry'
37
37
  spec.add_development_dependency 'pry-byebug'
@@ -29,6 +29,7 @@ require_relative 'device/clipboard_content_type'
29
29
  require_relative 'device/device'
30
30
  require_relative 'device/touch_actions'
31
31
  require_relative 'device/execute_driver'
32
+ require_relative 'device/orientation'
32
33
 
33
34
  # The following files have selenium-webdriver related stuff.
34
35
  require_relative 'base/driver'
@@ -32,6 +32,7 @@ module Appium
32
32
  include Device::Device
33
33
  include Device::TouchActions
34
34
  include Device::ExecuteDriver
35
+ include Device::Orientation
35
36
 
36
37
  def commands(command)
37
38
  ::Appium::Core::Commands::W3C::COMMANDS[command]
@@ -15,6 +15,7 @@
15
15
  require 'base64'
16
16
  require_relative 'search_context'
17
17
  require_relative 'screenshot'
18
+ require_relative 'rotable'
18
19
 
19
20
  module Appium
20
21
  module Core
@@ -22,10 +23,10 @@ module Appium
22
23
  class Driver < ::Selenium::WebDriver::Driver
23
24
  include ::Selenium::WebDriver::DriverExtensions::UploadsFiles
24
25
  include ::Selenium::WebDriver::DriverExtensions::HasSessionId
25
- include ::Selenium::WebDriver::DriverExtensions::Rotatable
26
26
  include ::Selenium::WebDriver::DriverExtensions::HasRemoteStatus
27
27
  include ::Selenium::WebDriver::DriverExtensions::HasWebStorage
28
28
 
29
+ include ::Appium::Core::Base::Rotatable
29
30
  include ::Appium::Core::Base::SearchContext
30
31
  include ::Appium::Core::Base::TakesScreenshot
31
32
 
@@ -0,0 +1,54 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ module Appium
16
+ module Core
17
+ class Base
18
+ #
19
+ # @api private
20
+ #
21
+
22
+ module Rotatable
23
+ ORIENTATIONS = %i[landscape portrait].freeze
24
+
25
+ #
26
+ # Change the screen orientation
27
+ #
28
+ # @param [:landscape, :portrait] orientation
29
+ #
30
+ #
31
+ def rotation=(orientation)
32
+ unless ORIENTATIONS.include?(orientation)
33
+ raise ArgumentError, "expected #{ORIENTATIONS.inspect}, got #{orientation.inspect}"
34
+ end
35
+
36
+ bridge.screen_orientation = orientation.to_s.upcase
37
+ end
38
+ alias rotate rotation=
39
+
40
+ #
41
+ # Get the current screen orientation
42
+ #
43
+ # @return [:landscape, :portrait] orientation
44
+ #
45
+ # @api public
46
+ #
47
+
48
+ def orientation
49
+ bridge.screen_orientation.to_sym.downcase
50
+ end
51
+ end
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ module Appium
16
+ module Core
17
+ class Base
18
+ module Device
19
+ module Orientation
20
+ def screen_orientation=(orientation)
21
+ execute :set_screen_orientation, {}, { orientation: orientation }
22
+ end
23
+
24
+ def screen_orientation
25
+ execute :get_screen_orientation
26
+ end
27
+ end # module Orientation
28
+ end # module Device
29
+ end # class Base
30
+ end # module Core
31
+ end # module Appium
@@ -14,7 +14,7 @@
14
14
 
15
15
  module Appium
16
16
  module Core
17
- VERSION = '4.2.0' unless defined? ::Appium::Core::VERSION
18
- DATE = '2021-01-02' unless defined? ::Appium::Core::DATE
17
+ VERSION = '4.2.1' unless defined? ::Appium::Core::VERSION
18
+ DATE = '2021-01-10' unless defined? ::Appium::Core::DATE
19
19
  end
20
20
  end
@@ -1,3 +1,12 @@
1
+ #### v4.2.1 2021-01-10
2
+
3
+ - [23e944e](https://github.com/appium/ruby_lib_core/commit/23e944ed72c6ea861532f5acc1381af4441705e6) Release 4.2.1
4
+ - [1a416b1](https://github.com/appium/ruby_lib_core/commit/1a416b136beb2b9115d3eb6637b22817f0e55601) chore: move rotable for w3c (#300)
5
+ - [95821c6](https://github.com/appium/ruby_lib_core/commit/95821c6f1a4ebc785e2dc3e6e16c1705521237e8) ci: bump android app (#299)
6
+ - [4e1770e](https://github.com/appium/ruby_lib_core/commit/4e1770e3b9d6995b1d5430b9033097609edca1c8) chore(deps-dev): update rubocop requirement from = 1.7.0 to = 1.8.0 (#298)
7
+ - [b230512](https://github.com/appium/ruby_lib_core/commit/b230512c52875ea70545d3d2262c306640f87f7d) chore: fix rubocop
8
+
9
+
1
10
  #### v4.2.0 2021-01-02
2
11
 
3
12
  - [e55b2b6](https://github.com/appium/ruby_lib_core/commit/e55b2b6f7fe293091be0d3835075e66c74f3b9dd) Release 4.2.0
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: 4.2.0
4
+ version: 4.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kazuaki MATSUO
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-01-03 00:00:00.000000000 Z
11
+ date: 2021-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: selenium-webdriver
@@ -134,14 +134,14 @@ dependencies:
134
134
  requirements:
135
135
  - - '='
136
136
  - !ruby/object:Gem::Version
137
- version: 1.7.0
137
+ version: 1.8.0
138
138
  type: :development
139
139
  prerelease: false
140
140
  version_requirements: !ruby/object:Gem::Requirement
141
141
  requirements:
142
142
  - - '='
143
143
  - !ruby/object:Gem::Version
144
- version: 1.7.0
144
+ version: 1.8.0
145
145
  - !ruby/object:Gem::Dependency
146
146
  name: appium_thor
147
147
  requirement: !ruby/object:Gem::Requirement
@@ -268,6 +268,7 @@ files:
268
268
  - lib/appium_lib_core/common/base/driver.rb
269
269
  - lib/appium_lib_core/common/base/http_default.rb
270
270
  - lib/appium_lib_core/common/base/platform.rb
271
+ - lib/appium_lib_core/common/base/rotable.rb
271
272
  - lib/appium_lib_core/common/base/screenshot.rb
272
273
  - lib/appium_lib_core/common/base/search_context.rb
273
274
  - lib/appium_lib_core/common/command.rb
@@ -287,6 +288,7 @@ files:
287
288
  - lib/appium_lib_core/common/device/ime_actions.rb
288
289
  - lib/appium_lib_core/common/device/keyboard.rb
289
290
  - lib/appium_lib_core/common/device/keyevent.rb
291
+ - lib/appium_lib_core/common/device/orientation.rb
290
292
  - lib/appium_lib_core/common/device/screen_record.rb
291
293
  - lib/appium_lib_core/common/device/setting.rb
292
294
  - lib/appium_lib_core/common/device/touch_actions.rb