appium_lib_core 1.7.0 → 1.7.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
  SHA1:
3
- metadata.gz: ae3ab4209d2a044887cda376b71c5a61a5e525d7
4
- data.tar.gz: 16dacc763beec91077e7fdc76806c6d775002966
3
+ metadata.gz: 186c66ad7d2bd85ada277634f906739683741bca
4
+ data.tar.gz: 20c05598f4aa22bdbeccfd9ba57c032383a34b53
5
5
  SHA512:
6
- metadata.gz: 74c62e4e29d2c3b6428a8f6891f209f780b73b2d5cd491e85bb74dd057de9a786f38933ff81c57a44a81bc02f6f7e76a8e127af2ef59990d793babdbef903d3b
7
- data.tar.gz: 819194531cf4631149199061461ddf41f7be0eec4dba95cc7573f2ad75de6791c5d490c8e08226e9df3ee6e23e9663e0d8913e9012c9fe831513ef50673ff92a
6
+ metadata.gz: 81483bed8fb09ad7e9cb5177593270de7eea8593ff83beee3c94e2d69bb9ca09805d9ce312751ac95fef2cb42f07910b6add32d07af896e35d501d2d44b2675f
7
+ data.tar.gz: 9f26c27dcb556240802069c9728f12c07d119fee0f4e46b5332074faa6946b330412ed5071e8b65a6f0b41273ff36c5654df855c5eea3b8746ed75e5df03737c
@@ -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.7.1] - 2018-06-15
12
+ ### Enhancements
13
+ - Add a `format` argument for `device_time` [#94](https://github.com/appium/ruby_lib_core/pull/94)
14
+
15
+ ### Bug fixes
16
+ - Return empty array `[]` for find_elements
17
+
18
+ ### Deprecations
19
+
11
20
  ## [1.7.0] - 2018-05-28
12
21
  ### Enhancements
13
22
  - Has one **Breaking Change**
@@ -40,7 +40,7 @@ module Appium
40
40
  #
41
41
  # Find all elements matching the given arguments
42
42
  #
43
- # @see SearchContext#find_element
43
+ # @see SearchContext#find_elements
44
44
  #
45
45
  def find_elements(*args)
46
46
  how, what = extract_args(args)
@@ -48,7 +48,7 @@ module Appium
48
48
  begin
49
49
  bridge.find_elements_by by, what.to_s, ref
50
50
  rescue Selenium::WebDriver::Error::TimeOutError
51
- raise Selenium::WebDriver::Error::NoSuchElementError
51
+ []
52
52
  end
53
53
  end
54
54
 
@@ -80,11 +80,15 @@ module Appium
80
80
  # @!method device_time
81
81
  # Get the time on the device
82
82
  #
83
- # @return [String]
83
+ # @param [String] format The set of format specifiers. Read https://momentjs.com/docs/ to get the full list of supported
84
+ # datetime format specifiers. The default format is `YYYY-MM-DDTHH:mm:ssZ`,
85
+ # which complies to ISO-8601
86
+ # @return [String] Formatted datetime string or the raw command output if formatting fails
84
87
  #
85
88
  # @example
86
89
  #
87
- # @driver.device_time
90
+ # @driver.device_time #=> "2018-06-12T11:13:31+02:00"
91
+ # @driver.device_time "YYYY-MM-DD" #=> "2018-06-12"
88
92
  #
89
93
 
90
94
  ####
@@ -277,7 +281,21 @@ module Appium
277
281
 
278
282
  # @!method push_file(path, filedata)
279
283
  # Place a file in a specific location on the device.
284
+ # On iOS, the server should have ifuse libraries installed and configured properly for this feature to work on real devices.
285
+ # On Android, the application under test should be built with debuggable flag enabled in order to get access to
286
+ # its container on the internal file system.
287
+ #
288
+ # @see https://github.com/libimobiledevice/ifuse iFuse GitHub page6
289
+ # @see https://github.com/osxfuse/osxfuse/wiki/FAQ osxFuse FAQ
290
+ # @see https://developer.android.com/studio/debug/ 'Debug Your App' developer article
291
+ #
280
292
  # @param [String] path The absolute path on the device to store data at.
293
+ # If the path starts with application id prefix, then the file will be pushed to
294
+ # the root of the corresponding application container.
295
+
296
+ # @param [String] path Either an absolute path OR, for iOS devices, a path relative to the app, as described.
297
+ # If the path starts with application id prefix, then the file will be pushed to the root of
298
+ # the corresponding application container.
281
299
  # @param [String] filedata Raw file data to be sent to the device. Converted to base64 in the method.
282
300
  #
283
301
  # @example
@@ -286,9 +304,22 @@ module Appium
286
304
  #
287
305
 
288
306
  # @!method pull_file(path)
289
- # Retrieve a file from the device. This can retrieve an absolute path or
290
- # a path relative to the installed app (iOS only).
307
+ # Pull a file from the simulator/device.
308
+ # On iOS the server should have ifuse
309
+ # libraries installed and configured properly for this feature to work on real devices.
310
+ # On Android the application under test should be built with debuggable flag enabled in order to get access
311
+ # to its container on the internal file system.
312
+ #
313
+ # @see https://github.com/libimobiledevice/ifuse iFuse GitHub page6
314
+ # @see https://github.com/osxfuse/osxfuse/wiki/FAQ osxFuse FAQ
315
+ # @see https://developer.android.com/studio/debug/ 'Debug Your App' developer article
316
+ #
291
317
  # @param [String] path Either an absolute path OR, for iOS devices, a path relative to the app, as described.
318
+ # If the path starts with application id prefix, then the file will be pulled from the root
319
+ # of the corresponding application container.
320
+ # Otherwise the root folder is considered as / on Android and on iOS it is a media folder root
321
+ # (real devices only).
322
+ # @return [Base64-decoded] Base64 decoded data
292
323
  #
293
324
  # @example
294
325
  #
@@ -297,8 +328,22 @@ module Appium
297
328
  #
298
329
 
299
330
  # @!method pull_folder(path)
300
- # Retrieve a folder from the device.
301
- # @param [String] path absolute path to the folder
331
+ # Pull a folder content from the simulator/device.
332
+ # On iOS the server should have ifuse libraries installed and configured properly for this feature to work on real devices.
333
+ # On Android the application under test should be built with debuggable flag enabled in order to get access to its container
334
+ # on the internal file system.
335
+ #
336
+ # @see https://github.com/libimobiledevice/ifuse iFuse GitHub page6
337
+ # @see https://github.com/osxfuse/osxfuse/wiki/FAQ osxFuse FAQ
338
+ # @see https://developer.android.com/studio/debug/ 'Debug Your App' developer article
339
+ #
340
+ # @param [String] path Absolute path to the folder.
341
+ # If the path starts with <em>@applicationId/</em> prefix, then the folder will be pulled
342
+ # from the root of the corresponding application container.
343
+ # Otherwise the root folder is considered as / on Android and on iOS it is a media folder root
344
+ # (real devices only).
345
+ #
346
+ # @return [Base64-decoded] Base64 decoded data which is zip archived
302
347
  #
303
348
  # @example
304
349
  #
@@ -482,8 +527,10 @@ module Appium
482
527
  end
483
528
 
484
529
  add_endpoint_method(:device_time) do
485
- def device_time
486
- execute :device_time
530
+ def device_time(format = nil)
531
+ arg = {}
532
+ arg[:format] = format unless format.nil?
533
+ execute :device_time, {}, arg
487
534
  end
488
535
  end
489
536
 
@@ -1,6 +1,6 @@
1
1
  module Appium
2
2
  module Core
3
- VERSION = '1.7.0'.freeze unless defined? ::Appium::Core::VERSION
4
- DATE = '2018-05-28'.freeze unless defined? ::Appium::Core::DATE
3
+ VERSION = '1.7.1'.freeze unless defined? ::Appium::Core::VERSION
4
+ DATE = '2018-06-15'.freeze unless defined? ::Appium::Core::DATE
5
5
  end
6
6
  end
@@ -1,3 +1,12 @@
1
+ #### v1.7.1 2018-06-15
2
+
3
+ - [84febaf](https://github.com/appium/ruby_lib_core/commit/84febaf3a5b4dff0084455556d3ffe1293b64471) Release 1.7.1
4
+ - [6d00f73](https://github.com/appium/ruby_lib_core/commit/6d00f739e93954508c34016732907e8629ffaaf5) Update search_context.rb
5
+ - [f40cded](https://github.com/appium/ruby_lib_core/commit/f40cdede589bf32abd78ab4e3d8c0240dfad0865) add date format for Android (#94)
6
+ - [afc3878](https://github.com/appium/ruby_lib_core/commit/afc3878c39564317cc5f5c3057dd6375ec8772f6) appended docstring for file management (#93)
7
+ - [2f53204](https://github.com/appium/ruby_lib_core/commit/2f5320413437c77cef233c7941d3419ab674bd5c) replace name with text
8
+
9
+
1
10
  #### v1.7.0 2018-05-28
2
11
 
3
12
  - [619b964](https://github.com/appium/ruby_lib_core/commit/619b96483dc4bce50295ae831e445053e3d9f1d9) Release 1.7.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: 1.7.0
4
+ version: 1.7.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: 2018-05-27 00:00:00.000000000 Z
11
+ date: 2018-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: selenium-webdriver