appium_lib_core 1.8.3 → 1.8.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5713a3f8a3dae15135c51505f780e853148e9b60
4
- data.tar.gz: 4bf2a39821cbdecfbdd720e4b9fd37bc49eab6d9
3
+ metadata.gz: dcdd560eba95515aba5c80f8fb3970002dafb55d
4
+ data.tar.gz: 30b34aea4b1ca749039eb25af1f28b1fa95120a9
5
5
  SHA512:
6
- metadata.gz: 55d650228d8b760cf4f53142edbeadf2c001b1872c150e7f73d3a4de4b9e9ccfa67b74d9e0174cd34b4460ccae8a82da6cfbd016f1f2c1edb02486204efc6cb3
7
- data.tar.gz: 5e566c082664edc39e5c80e0418aba15aaea33c66086ad96056c24730aaea4d413a70cd2172548eb891abc8c35cef372be0cd48bab71727bfdc9c63afe9ebaee
6
+ metadata.gz: be9a5b0f0a10c636f172cbf94f91e6a22ff96fe02401a531f669c0ce4b9491b2af39f9a06659c514412b52df6610f1f0c58af99b771b88585cfd4c713593e5c8
7
+ data.tar.gz: afc331fbdeaeaf0f6c3b8e364dfc76eb969e7f38bc050eb8c250e47e87cfa969e031c5ba4d602761a0d6d356e3bab80c33c26e2ce79fc64f962733199d4fafd2
@@ -8,6 +8,16 @@ All notable changes to this project will be documented in this file.
8
8
 
9
9
  ### Deprecations
10
10
 
11
+ ## [1.8.4] - 2018-07-28
12
+ ### Enhancements
13
+ - silence warning for pointeractions [#113](https://github.com/appium/ruby_lib_core/pull/113)
14
+ - 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)
15
+ - Set `'~> 3.5', '< 3.14'`
16
+
17
+ ### Bug fixes
18
+
19
+ ### Deprecations
20
+
11
21
  ## [1.8.3] - 2018-07-20
12
22
  ### Enhancements
13
23
  - Relax the logic of `:app` capability
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
23
  spec.require_paths = ['lib']
24
24
 
25
- spec.add_runtime_dependency 'selenium-webdriver', '~> 3.5'
25
+ spec.add_runtime_dependency 'selenium-webdriver', '~> 3.5', '< 3.14'
26
26
  spec.add_runtime_dependency 'faye-websocket', '~> 0.10.0'
27
27
 
28
28
  spec.add_development_dependency 'bundler', '~> 1.14'
@@ -5,6 +5,14 @@ module Appium
5
5
  class Base
6
6
  class Bridge
7
7
  class W3C < ::Selenium::WebDriver::Remote::W3C::Bridge
8
+ def self.silence_warnings_redefining(&block)
9
+ warn_level = $VERBOSE
10
+ $VERBOSE = nil
11
+ result = block.call
12
+ $VERBOSE = warn_level
13
+ result
14
+ end
15
+
8
16
  include Device::DeviceLock
9
17
  include Device::Keyboard
10
18
  include Device::ImeActions
@@ -22,7 +30,7 @@ module Appium
22
30
 
23
31
  # Used for default duration of each touch actions
24
32
  # Override from 250 milliseconds to 50 milliseconds
25
- ::Selenium::WebDriver::PointerActions::DEFAULT_MOVE_DURATION = 0.05
33
+ W3C.silence_warnings_redefining { ::Selenium::WebDriver::PointerActions::DEFAULT_MOVE_DURATION = 0.05 }
26
34
 
27
35
  def commands(command)
28
36
  ::Appium::Core::Commands::W3C::COMMANDS[command]
@@ -7,47 +7,33 @@ module Appium
7
7
  # To extend Appium related SearchContext into ::Selenium::WebDriver::Element
8
8
  include ::Appium::Core::Base::SearchContext
9
9
 
10
- # Note: For testing .text should be used over value, and name.
11
-
12
- # Returns the value attribute
13
- #
14
- # Fixes NoMethodError: undefined method `value' for Selenium::WebDriver::Element for iOS
15
- # @return [String]
16
- #
17
- # @example
10
+ # Returns the value of attributes like below. Read each platform to know more details.
18
11
  #
19
- # e = @driver.find_element :accessibility_id, 'something'
20
- # e.value
12
+ # uiautomator2: https://github.com/appium/appium-uiautomator2-server/blob/203cc7e57ce477f3cff5d95b135d1b3450a6033a/app/src/main/java/io/appium/uiautomator2/utils/Attribute.java#L19
13
+ # checkable, checked, class, clickable, content-desc, enabled, focusable, focused
14
+ # long-clickable, package, password, resource-id, scrollable, selection-start, selection-end
15
+ # selected, text, bounds, index
21
16
  #
22
- def value
23
- attribute :value
24
- end
25
-
26
- # Returns the name attribute
17
+ # XCUITest automation name supports below attributes.
18
+ # UID, accessibilityContainer, accessible, enabled, frame,
19
+ # label, name, rect, type, value, visible, wdAccessibilityContainer,
20
+ # wdAccessible, wdEnabled, wdFrame, wdLabel, wdName, wdRect, wdType,
21
+ # wdUID, wdValue, wdVisible
27
22
  #
28
- # Fixes NoMethodError: undefined method `name' for Selenium::WebDriver::Element for iOS
29
23
  # @return [String]
30
24
  #
31
25
  # @example
32
26
  #
33
27
  # e = @driver.find_element :accessibility_id, 'something'
34
- # e.name
28
+ # e.value
29
+ # e.resource_id # call `e.attribute "resource-id"`
35
30
  #
36
- def name
37
- attribute :name
31
+ def method_missing(method_name)
32
+ respond_to?(method_name) ? attribute(method_name.to_s.tr('_', '-')) : super
38
33
  end
39
34
 
40
- # Enable access to iOS accessibility label
41
- # accessibility identifier is supported as 'name'
42
- # @return [String]
43
- #
44
- # @example
45
- #
46
- # e = @driver.find_element :accessibility_id, 'something'
47
- # e.label
48
- #
49
- def label
50
- attribute :label
35
+ def respond_to_missing?(*)
36
+ true
51
37
  end
52
38
 
53
39
  # Alias for type
@@ -1,6 +1,6 @@
1
1
  module Appium
2
2
  module Core
3
- VERSION = '1.8.3'.freeze unless defined? ::Appium::Core::VERSION
4
- DATE = '2018-07-20'.freeze unless defined? ::Appium::Core::DATE
3
+ VERSION = '1.8.4'.freeze unless defined? ::Appium::Core::VERSION
4
+ DATE = '2018-07-28'.freeze unless defined? ::Appium::Core::DATE
5
5
  end
6
6
  end
@@ -1,3 +1,11 @@
1
+ #### v1.8.4 2018-07-28
2
+
3
+ - [1775354](https://github.com/appium/ruby_lib_core/commit/1775354f201658243737a0a455fe4123ce2e87a7) Release 1.8.4
4
+ - [0770f63](https://github.com/appium/ruby_lib_core/commit/0770f639a59c6662aa8aee30a2b594625873177c) set < 3.14 (#117)
5
+ - [443f089](https://github.com/appium/ruby_lib_core/commit/443f08985a44980e6a0e6cfc2886975efe279914) use method missing for getting attributes (#116)
6
+ - [cdef904](https://github.com/appium/ruby_lib_core/commit/cdef904201651dee6cec2f5750d37903c7cb26fb) silence warning for pointeractions (#113)
7
+
8
+
1
9
  #### v1.8.3 2018-07-20
2
10
 
3
11
  - [e84eb3a](https://github.com/appium/ruby_lib_core/commit/e84eb3aefef8f5c6973d7fda207bc53e53ceb7ad) Release 1.8.3
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.8.3
4
+ version: 1.8.4
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-07-20 00:00:00.000000000 Z
11
+ date: 2018-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: selenium-webdriver
@@ -17,6 +17,9 @@ dependencies:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3.5'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '3.14'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -24,6 +27,9 @@ dependencies:
24
27
  - - "~>"
25
28
  - !ruby/object:Gem::Version
26
29
  version: '3.5'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '3.14'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: faye-websocket
29
35
  requirement: !ruby/object:Gem::Requirement