appium_lib_core 9.5.2 → 10.0.0

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
  SHA256:
3
- metadata.gz: ed3c50c78d8ac4e95f6e7b7a0c837d638b263595cdcfd1e59c73fa7b71eeb70b
4
- data.tar.gz: f0f79ecc0cd874377b1c9ff35fb3b0bc1d9f7bd65b26aa8eb60b99583d6cf7f7
3
+ metadata.gz: 12d386d3e8769c8292b096b65b8de708fcecea995775f50e3dbc1a7025b97c42
4
+ data.tar.gz: '096f64ed445ce70b10f49873e627cdcfdbf5431a718615a68089333a18b4ad13'
5
5
  SHA512:
6
- metadata.gz: ea9d481550f2bd11e1df240e9d0c1f76c65a4b5465e4d490450a60facaf1cfcdf8c92a7387a71391ab89fb648a8229f3476a124f74607a207caef44b95350500
7
- data.tar.gz: 8d9991dccc182a06445f0708af1d76d0ad6f044e0623d8ef521e254869a46b81e625ac68eb133171d5be56465ec8cf6cf4e135a8dc010f59e8b03b90f71e6e00
6
+ metadata.gz: 784554dc3954ff170b3f79c50cda1a23bcaaeaf55a349d4a2a0ecb12db5b6f7c908f4e882de6e9a5b2afd42c9d87a2815c414e16181f680f92b91f3f7bedef18
7
+ data.tar.gz: 9e71aa8a9a7093a607c4d2aa17b72b1f16c5eabe0b5fcc1e8ed34c4c16d18ddc80a411d748c5cbde82d38756eb540c8c355ccb4339c62864733b50e521e43d00
data/CHANGELOG.md CHANGED
@@ -2,13 +2,11 @@
2
2
  All notable changes to this project will be documented in this file.
3
3
  Read `release_notes.md` for commit level details.
4
4
 
5
- ## [Unreleased]
5
+ ## [10.0.0] - 2025-02-16
6
6
 
7
7
  ### Enhancements
8
-
9
- ### Bug fixes
10
-
11
- ### Deprecations
8
+ - Use `http://127.0.0.1:4723` as the default url destination instead of `http://127.0.0.1:4723/wd/hub`
9
+ - `--base-path` in appium server may need to drop the `/wd/hub`
12
10
 
13
11
  ## [9.5.2] - 2025-01-30
14
12
  - Fix yardoc
data/Gemfile CHANGED
@@ -8,8 +8,8 @@ gem 'minitest', '~> 5.0'
8
8
  gem 'minitest-reporters', '~> 1.1'
9
9
  gem 'parallel_tests'
10
10
  gem 'rake', '~> 13.0'
11
- gem 'rubocop', '1.71.0'
11
+ gem 'rubocop', '1.71.2'
12
12
  gem 'simplecov'
13
13
  gem 'steep', '~> 1.9.3'
14
- gem 'webmock', '~> 3.24.0'
14
+ gem 'webmock', '~> 3.25.0'
15
15
  gem 'yard', '~> 0.9.11'
data/README.md CHANGED
@@ -49,7 +49,7 @@ Run functional tests which require the Appium server and real device, Simulator/
49
49
  $ npm install --location=global appium
50
50
  $ appium driver install xcuitest
51
51
  $ appium driver install uiautomator2 # etc
52
- $ appium --base-path=/wd/hub --relaxed-security # To run all tests in local
52
+ $ appium --relaxed-security # To run all tests in local
53
53
  ```
54
54
 
55
55
  - Conduct tests
@@ -146,7 +146,7 @@ As of version 5.8.0, the client can attach to an existing session. The main purp
146
146
 
147
147
  ```ruby
148
148
  # @driver is the driver instance of an existing session
149
- attached_driver = ::Appium::Core::Driver.attach_to @driver.session_id, url: 'http://127.0.0.1:4723/wd/hub', automation_name: 'XCUITest', platform_name: 'ios'
149
+ attached_driver = ::Appium::Core::Driver.attach_to @driver.session_id, url: 'http://127.0.0.1:4723', automation_name: 'XCUITest', platform_name: 'ios'
150
150
  assert attached_driver.session_id == @driver.session_id
151
151
  attached_driver.page_source
152
152
  ```
@@ -68,7 +68,7 @@ module Appium
68
68
  #
69
69
  # new_driver = ::Appium::Core::Driver.attach_to(
70
70
  # driver.session_id,
71
- # url: 'http://127.0.0.1:4723/wd/hub', automation_name: 'UiAutomator2', platform_name: 'Android'
71
+ # url: 'http://127.0.0.1:4723', automation_name: 'UiAutomator2', platform_name: 'Android'
72
72
  # )
73
73
  #
74
74
  def attach_to(session_id, platform_name, automation_name)
@@ -129,7 +129,7 @@ module Appium
129
129
  attr_reader :automation_name
130
130
 
131
131
  # Custom URL for the selenium server. If set this attribute, ruby_lib_core try to handshake to the custom url.<br>
132
- # Defaults to false. Then try to connect to <code>http://127.0.0.1:#{port}/wd/hub</code>.
132
+ # Defaults to false. Then try to connect to <code>http://127.0.0.1:#{port}</code>.
133
133
  # @return [String]
134
134
  attr_reader :custom_url
135
135
 
@@ -196,7 +196,7 @@ module Appium
196
196
  # # format 1
197
197
  # @core = Appium::Core.for caps: {...}, appium_lib: {...}
198
198
  # # format 2. 'capabilities:' is also available instead of 'caps:'.
199
- # @core = Appium::Core.for url: "http://127.0.0.1:8080/wd/hub", capabilities: {...}, appium_lib: {...}
199
+ # @core = Appium::Core.for url: "http://127.0.0.1:8080", capabilities: {...}, appium_lib: {...}
200
200
  #
201
201
  #
202
202
  # require 'rubygems'
@@ -220,7 +220,7 @@ module Appium
220
220
  # }
221
221
  # }
222
222
  # @core = Appium::Core.for(opts) # create a core driver with 'opts' and extend methods into 'self'
223
- # @core.start_driver # Connect to 'http://127.0.0.1:8080/wd/hub' because of 'port: 8080'
223
+ # @core.start_driver # Connect to 'http://127.0.0.1:8080' because of 'port: 8080'
224
224
  #
225
225
  # # Start iOS driver with .zip file over HTTP
226
226
  # # 'capabilities:' is also available instead of 'caps:'. Either is fine.
@@ -233,7 +233,7 @@ module Appium
233
233
  # app: 'http://example.com/path/to/MyiOS.app.zip'
234
234
  # },
235
235
  # appium_lib: {
236
- # server_url: 'http://custom-host:8080/wd/hub.com',
236
+ # server_url: 'http://custom-host:8080/wd/hub',
237
237
  # wait: 0,
238
238
  # wait_timeout: 20,
239
239
  # wait_interval: 0.3,
@@ -241,11 +241,11 @@ module Appium
241
241
  # }
242
242
  # }
243
243
  # @core = Appium::Core.for(opts)
244
- # @core.start_driver # Connect to 'http://custom-host:8080/wd/hub.com'
244
+ # @core.start_driver # Connect to 'http://custom-host:8080/wd/hub'
245
245
  #
246
246
  # # Start iOS driver as another format. 'url' is available like below
247
247
  # opts = {
248
- # url: "http://custom-host:8080/wd/hub.com",
248
+ # url: "http://custom-host:8080/wd/hub",
249
249
  # capabilities: {
250
250
  # platformName: :ios,
251
251
  # platformVersion: '11.0',
@@ -261,7 +261,7 @@ module Appium
261
261
  # }
262
262
  # }
263
263
  # @core = Appium::Core.for(opts) # create a core driver with 'opts' and extend methods into 'self'
264
- # @core.start_driver # start driver with 'url'. Connect to 'http://custom-host:8080/wd/hub.com'
264
+ # @core.start_driver # start driver with 'url'. Connect to 'http://custom-host:8080/wd/hub'
265
265
  #
266
266
  # # With a custom listener
267
267
  # class CustomListener < ::Selenium::WebDriver::Support::AbstractEventListener
@@ -300,7 +300,7 @@ module Appium
300
300
  #
301
301
  # new_driver = ::Appium::Core::Driver.attach_to(
302
302
  # driver.session_id, # The 'driver' has an existing session id
303
- # url: 'http://127.0.0.1:4723/wd/hub', automation_name: 'UiAutomator2', platform_name: 'Android'
303
+ # url: 'http://127.0.0.1:4723', automation_name: 'UiAutomator2', platform_name: 'Android'
304
304
  # )
305
305
  # new_driver.page_source # for example
306
306
  #
@@ -352,7 +352,7 @@ module Appium
352
352
  # Creates a new global driver and quits the old one if it exists.
353
353
  # You can customise http_client as the following
354
354
  #
355
- # @param [String] server_url Custom server url to send to requests. Default is "http://127.0.0.1:4723/wd/hub".
355
+ # @param [String] server_url Custom server url to send to requests. Default is "http://127.0.0.1:4723".
356
356
  # @param http_client_ops [Hash] Options for http client
357
357
  # @option http_client_ops [Hash] :http_client Custom HTTP Client
358
358
  # @option http_client_ops [Hash] :open_timeout Custom open timeout for http client.
@@ -383,10 +383,10 @@ module Appium
383
383
  # }
384
384
  #
385
385
  # @core = Appium::Core.for(opts) # create a core driver with 'opts' and extend methods into 'self'
386
- # @driver = @core.start_driver server_url: "http://127.0.0.1:8000/wd/hub"
386
+ # @driver = @core.start_driver server_url: "http://127.0.0.1:8000"
387
387
  #
388
388
  # # Attach custom HTTP client
389
- # @driver = @core.start_driver server_url: "http://127.0.0.1:8000/wd/hub",
389
+ # @driver = @core.start_driver server_url: "http://127.0.0.1:8000",
390
390
  # http_client_ops: { http_client: Your:Http:Client.new,
391
391
  # open_timeout: 1_000,
392
392
  # read_timeout: 1_000 }
@@ -394,7 +394,7 @@ module Appium
394
394
 
395
395
  def start_driver(server_url: nil,
396
396
  http_client_ops: { http_client: nil, open_timeout: 999_999, read_timeout: 999_999 })
397
- @custom_url ||= "http://127.0.0.1:#{@port}/wd/hub"
397
+ @custom_url ||= "http://127.0.0.1:#{@port}"
398
398
  @custom_url = server_url unless server_url.nil?
399
399
 
400
400
  @http_client = get_http_client http_client: http_client_ops.delete(:http_client),
@@ -14,7 +14,7 @@
14
14
 
15
15
  module Appium
16
16
  module Core
17
- VERSION = '9.5.2' unless defined? ::Appium::Core::VERSION
18
- DATE = '2025-01-30' unless defined? ::Appium::Core::DATE
17
+ VERSION = '10.0.0' unless defined? ::Appium::Core::VERSION
18
+ DATE = '2025-02-16' unless defined? ::Appium::Core::DATE
19
19
  end
20
20
  end
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: 9.5.2
4
+ version: 10.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kazuaki MATSUO
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-01-30 00:00:00.000000000 Z
11
+ date: 2025-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faye-websocket