appium_lib_core 3.0.2 → 3.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +7 -2
  3. data/CHANGELOG.md +9 -0
  4. data/lib/appium_lib_core.rb +14 -0
  5. data/lib/appium_lib_core/android.rb +14 -0
  6. data/lib/appium_lib_core/android/device.rb +14 -0
  7. data/lib/appium_lib_core/android/device/auth_finger_print.rb +14 -0
  8. data/lib/appium_lib_core/android/device/clipboard.rb +14 -0
  9. data/lib/appium_lib_core/android/device/emulator.rb +14 -0
  10. data/lib/appium_lib_core/android/device/network.rb +14 -0
  11. data/lib/appium_lib_core/android/device/performance.rb +14 -0
  12. data/lib/appium_lib_core/android/device/screen.rb +14 -0
  13. data/lib/appium_lib_core/android/espresso/bridge.rb +14 -0
  14. data/lib/appium_lib_core/android/uiautomator1/bridge.rb +14 -0
  15. data/lib/appium_lib_core/android/uiautomator2/bridge.rb +14 -0
  16. data/lib/appium_lib_core/android/uiautomator2/device.rb +14 -0
  17. data/lib/appium_lib_core/android/uiautomator2/device/battery.rb +14 -0
  18. data/lib/appium_lib_core/android_espresso.rb +14 -0
  19. data/lib/appium_lib_core/android_uiautomator2.rb +14 -0
  20. data/lib/appium_lib_core/common.rb +14 -0
  21. data/lib/appium_lib_core/common/base.rb +14 -0
  22. data/lib/appium_lib_core/common/base/bridge.rb +15 -1
  23. data/lib/appium_lib_core/common/base/bridge/mjsonwp.rb +14 -0
  24. data/lib/appium_lib_core/common/base/bridge/w3c.rb +14 -0
  25. data/lib/appium_lib_core/common/base/capabilities.rb +14 -0
  26. data/lib/appium_lib_core/common/base/command.rb +14 -0
  27. data/lib/appium_lib_core/common/base/driver.rb +16 -2
  28. data/lib/appium_lib_core/common/base/http_default.rb +14 -0
  29. data/lib/appium_lib_core/common/base/platform.rb +14 -0
  30. data/lib/appium_lib_core/common/base/screenshot.rb +14 -0
  31. data/lib/appium_lib_core/common/base/search_context.rb +14 -0
  32. data/lib/appium_lib_core/common/command.rb +14 -0
  33. data/lib/appium_lib_core/common/command/common.rb +77 -63
  34. data/lib/appium_lib_core/common/command/mjsonwp.rb +15 -1
  35. data/lib/appium_lib_core/common/command/w3c.rb +30 -16
  36. data/lib/appium_lib_core/common/device/app_management.rb +14 -0
  37. data/lib/appium_lib_core/common/device/app_state.rb +14 -0
  38. data/lib/appium_lib_core/common/device/battery_status.rb +14 -0
  39. data/lib/appium_lib_core/common/device/clipboard_content_type.rb +14 -0
  40. data/lib/appium_lib_core/common/device/context.rb +14 -0
  41. data/lib/appium_lib_core/common/device/device.rb +14 -0
  42. data/lib/appium_lib_core/common/device/device_lock.rb +14 -0
  43. data/lib/appium_lib_core/common/device/file_management.rb +14 -0
  44. data/lib/appium_lib_core/common/device/image_comparison.rb +14 -0
  45. data/lib/appium_lib_core/common/device/ime_actions.rb +14 -0
  46. data/lib/appium_lib_core/common/device/keyboard.rb +14 -0
  47. data/lib/appium_lib_core/common/device/keyevent.rb +14 -0
  48. data/lib/appium_lib_core/common/device/screen_record.rb +14 -0
  49. data/lib/appium_lib_core/common/device/setting.rb +14 -0
  50. data/lib/appium_lib_core/common/device/touch_actions.rb +14 -0
  51. data/lib/appium_lib_core/common/device/value.rb +14 -0
  52. data/lib/appium_lib_core/common/error.rb +14 -0
  53. data/lib/appium_lib_core/common/log.rb +14 -0
  54. data/lib/appium_lib_core/common/logger.rb +14 -0
  55. data/lib/appium_lib_core/common/touch_action/multi_touch.rb +14 -0
  56. data/lib/appium_lib_core/common/touch_action/touch_actions.rb +14 -0
  57. data/lib/appium_lib_core/common/wait.rb +17 -3
  58. data/lib/appium_lib_core/common/wait/timer.rb +14 -0
  59. data/lib/appium_lib_core/common/ws/websocket.rb +14 -0
  60. data/lib/appium_lib_core/device.rb +14 -0
  61. data/lib/appium_lib_core/driver.rb +22 -2
  62. data/lib/appium_lib_core/ios.rb +14 -0
  63. data/lib/appium_lib_core/ios/device.rb +14 -0
  64. data/lib/appium_lib_core/ios/device/clipboard.rb +14 -0
  65. data/lib/appium_lib_core/ios/uiautomation/bridge.rb +14 -0
  66. data/lib/appium_lib_core/ios/uiautomation/device.rb +14 -0
  67. data/lib/appium_lib_core/ios/uiautomation/patch.rb +14 -0
  68. data/lib/appium_lib_core/ios/xcuitest/bridge.rb +14 -0
  69. data/lib/appium_lib_core/ios/xcuitest/device.rb +14 -0
  70. data/lib/appium_lib_core/ios/xcuitest/device/battery.rb +14 -0
  71. data/lib/appium_lib_core/ios/xcuitest/device/performance.rb +14 -0
  72. data/lib/appium_lib_core/ios/xcuitest/device/screen.rb +14 -0
  73. data/lib/appium_lib_core/ios_xcuitest.rb +14 -0
  74. data/lib/appium_lib_core/patch.rb +14 -0
  75. data/lib/appium_lib_core/version.rb +16 -2
  76. data/release_notes.md +6 -0
  77. data/script/commands.rb +15 -1
  78. metadata +2 -2
@@ -1,3 +1,17 @@
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
+
1
15
  module Appium
2
16
  module Core
3
17
  class Base
@@ -1,3 +1,17 @@
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
+
1
15
  module Appium
2
16
  module Core
3
17
  class Base
@@ -1,3 +1,17 @@
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
+
1
15
  module Appium
2
16
  module Core
3
17
  class Base
@@ -1,3 +1,17 @@
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
+
1
15
  module Appium
2
16
  module Core
3
17
  class Base
@@ -1,3 +1,17 @@
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
+
1
15
  module Appium
2
16
  module Core
3
17
  class Base
@@ -1,3 +1,17 @@
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
+
1
15
  module Appium
2
16
  module Core
3
17
  class Base
@@ -1,3 +1,17 @@
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
+
1
15
  require 'base64'
2
16
 
3
17
  module Appium
@@ -1,3 +1,17 @@
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
+
1
15
  require 'base64'
2
16
 
3
17
  module Appium
@@ -1,3 +1,17 @@
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
+
1
15
  module Appium
2
16
  module Core
3
17
  class Base
@@ -1,3 +1,17 @@
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
+
1
15
  module Appium
2
16
  module Core
3
17
  class Base
@@ -1,3 +1,17 @@
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
+
1
15
  module Appium
2
16
  module Core
3
17
  class Base
@@ -1,3 +1,17 @@
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
+
1
15
  module Appium
2
16
  module Core
3
17
  class Base
@@ -1,3 +1,17 @@
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
+
1
15
  module Appium
2
16
  module Core
3
17
  class Base
@@ -1,3 +1,17 @@
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
+
1
15
  require_relative '../touch_action/touch_actions'
2
16
  require_relative '../touch_action/multi_touch'
3
17
 
@@ -1,3 +1,17 @@
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
+
1
15
  module Appium
2
16
  module Core
3
17
  class Base
@@ -1,3 +1,17 @@
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
+
1
15
  module Appium
2
16
  module Core
3
17
  module Error
@@ -1,3 +1,17 @@
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
+
1
15
  module Appium
2
16
  module Core
3
17
  class Logs
@@ -1,3 +1,17 @@
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
+
1
15
  require 'forwardable'
2
16
  require 'logger'
3
17
 
@@ -1,3 +1,17 @@
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
+
1
15
  module Appium
2
16
  module Core
3
17
  # MultiTouch actions allow for multiple touches to happen at the same time,
@@ -1,3 +1,17 @@
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
+
1
15
  module Appium
2
16
  module Core
3
17
  # Perform a series of gestures, one after another. Gestures are chained
@@ -1,3 +1,17 @@
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
+
1
15
  require_relative 'wait/timer'
2
16
 
3
17
  module Appium
@@ -46,7 +60,7 @@ module Appium
46
60
  end
47
61
 
48
62
  msg = message_for timeout, message
49
- msg << " (#{last_error.message})" if last_error
63
+ msg += " (#{last_error.message})" if last_error
50
64
 
51
65
  raise TimeoutError, msg
52
66
  end
@@ -91,7 +105,7 @@ module Appium
91
105
  end
92
106
 
93
107
  msg = message_for timeout, message
94
- msg << " (#{last_error.message})" if last_error
108
+ msg += " (#{last_error.message})" if last_error
95
109
 
96
110
  raise TimeoutError, msg
97
111
  end
@@ -100,7 +114,7 @@ module Appium
100
114
 
101
115
  def message_for(timeout, message)
102
116
  msg = "timed out after #{timeout} seconds"
103
- msg << ", #{message}" if message
117
+ msg += ", #{message}" if message
104
118
  msg
105
119
  end
106
120
  end # self
@@ -1,3 +1,17 @@
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
+
1
15
  module Appium
2
16
  module Core
3
17
  module Wait
@@ -1,3 +1,17 @@
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
+
1
15
  require 'faye/websocket'
2
16
  require 'eventmachine'
3
17