appium_lib 9.4.1 → 9.4.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -24,7 +24,7 @@ describe 'ios/xcuitest_gestures' do
24
24
 
25
25
  t 'scroll' do
26
26
  scroll direction: 'down'
27
- text('Style Default').displayed?.must_be true
27
+ text('Style Default').displayed?.must_equal true
28
28
  end
29
29
 
30
30
  t 'swipe' do
@@ -34,6 +34,11 @@ describe 'ios/xcuitest_gestures' do
34
34
  proc { text('Style Default') }.must_raise ::Selenium::WebDriver::Error::NoSuchElementError
35
35
  end
36
36
 
37
+ t 'drag_from_to_for_duration' do
38
+ drag_from_to_for_duration from_x: 100, from_y: 100, to_x: 100, to_y: 400
39
+ text('Standard Switch').displayed?.must_equal true
40
+ end
41
+
37
42
  t 'pinch' do
38
43
  pinch(scale: 0.5, velocity: -1)
39
44
  end
@@ -50,12 +55,11 @@ describe 'ios/xcuitest_gestures' do
50
55
  select_picker_wheel(element: e, order: 'next')
51
56
 
52
57
  e.displayed?.must_be false
53
- find_element(:name, 'Serena Auroux').displayed?.must_be true
54
-
55
- back_click
58
+ find_element(:name, 'Serena Auroux').displayed?.must_equal true
56
59
  end
57
60
 
58
61
  t 'after_last' do
62
+ back_click
59
63
  after_last
60
64
  end
61
65
  end
@@ -1,5 +1,5 @@
1
1
  module Appium
2
2
  # Version and Date are defined on the 'Appium' module, not 'Appium::Common'
3
- VERSION = '9.4.1'.freeze unless defined? ::Appium::VERSION
4
- DATE = '2017-04-19'.freeze unless defined? ::Appium::DATE
3
+ VERSION = '9.4.2'.freeze unless defined? ::Appium::VERSION
4
+ DATE = '2017-04-21'.freeze unless defined? ::Appium::DATE
5
5
  end
@@ -118,7 +118,7 @@ module Appium
118
118
  def drag_from_to_for_duration(from_x:, from_y:, to_x:, to_y:, duration: 1.0, element: nil)
119
119
  return 'require XCUITest(WDA)' unless automation_name_is_xcuitest?
120
120
 
121
- args = { from_x: from_x, from_y: from_y, to_x: to_x, to_y: to_y, duration: duration }
121
+ args = { fromX: from_x, fromY: from_y, toX: to_x, toY: to_y, duration: duration }
122
122
  args[:element] = element if element
123
123
  execute_script 'mobile: dragFromToForDuration', args
124
124
  end
@@ -128,15 +128,18 @@ module Appium
128
128
  # https://github.com/appium/appium-xcuitest-driver/pull/420
129
129
  # @param order [String] The order to move picker to. "next" or "previous".
130
130
  # @param element [Element] Element id to perform select picker wheel on.
131
+ # @option opts [Integer] :offset The value in range [0.01, 0.5]. Default is 0.2 in server side.
132
+ # https://github.com/facebook/WebDriverAgent/pull/549/files
131
133
  #
132
134
  # ```ruby
133
135
  # select_picker_wheel order: "next", element: find_element(:accessibility_id, "some picker")
134
136
  # ```
135
- def select_picker_wheel(element:, order:)
137
+ def select_picker_wheel(element:, order:, offset: nil)
136
138
  return 'require XCUITest(WDA)' unless automation_name_is_xcuitest?
137
139
  return 'Set "next" or "previous" for :order' unless %w(next previous).include?(order)
138
140
 
139
141
  args = { element: element.ref, order: order }
142
+ args[:offset] = offset if offset
140
143
  execute_script 'mobile: selectPickerWheelValue', args
141
144
  end
142
145
  end # module XcuitestGesture
@@ -1,3 +1,9 @@
1
+ #### v9.4.1 2017-04-19
2
+
3
+ - [491a142](https://github.com/appium/ruby_lib/commit/491a142942cc0eb8addfb15e2bbd805d260cebc0) Release 9 4 1 (#550)
4
+ - [d721297](https://github.com/appium/ruby_lib/commit/d721297a634cebc0d22f26a132345126036c71d6) separate find_element/s for uiautomator and xpath (#547)
5
+
6
+
1
7
  #### v9.4.0 2017-04-17
2
8
 
3
9
  - [9492690](https://github.com/appium/ruby_lib/commit/9492690f80efaab79ce165e16dd335fca9717c4a) Release 9 4 0 (#545)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appium_lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.4.1
4
+ version: 9.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - code@bootstraponline.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-19 00:00:00.000000000 Z
11
+ date: 2017-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: selenium-webdriver