appium_lib 12.0.0.rc2 → 12.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +32 -3
- data/appium_lib.gemspec +2 -2
- data/docs/android_docs.md +207 -229
- data/docs/ios_docs.md +245 -267
- data/lib/appium_lib/driver.rb +3 -1
- data/lib/appium_lib/version.rb +2 -2
- data/readme.md +1 -0
- data/release_notes.md +28 -0
- metadata +10 -12
- data/docs/index_paths.md +0 -26
- data/docs/travis.sample.yml +0 -24
data/lib/appium_lib/driver.rb
CHANGED
@@ -782,7 +782,9 @@ module Appium
|
|
782
782
|
end
|
783
783
|
|
784
784
|
def log_event=(log_event)
|
785
|
-
|
785
|
+
unless log_event.is_a?(Hash)
|
786
|
+
raise ::Appium::Core::Error::ArgumentError('log_event should be Hash like { vendor: "appium", event: "funEvent"}')
|
787
|
+
end
|
786
788
|
|
787
789
|
@driver.logs.event vendor: log_event[:vendor], event: log_event[:event]
|
788
790
|
end
|
data/lib/appium_lib/version.rb
CHANGED
@@ -14,6 +14,6 @@
|
|
14
14
|
|
15
15
|
module Appium
|
16
16
|
# Version and Date are defined on the 'Appium' module, not 'Appium::Common'
|
17
|
-
VERSION = '12.0.0
|
18
|
-
DATE = '2021-
|
17
|
+
VERSION = '12.0.0' unless defined? ::Appium::VERSION
|
18
|
+
DATE = '2021-11-06' unless defined? ::Appium::DATE
|
19
19
|
end
|
data/readme.md
CHANGED
@@ -26,6 +26,7 @@ We can avoid the class driver with current `ruby_lib`, but if you'd like to impl
|
|
26
26
|
### Ruby Lib and Appium
|
27
27
|
|
28
28
|
- Ruby library version over `12.0.0` is based on Selenium v4
|
29
|
+
- Please read [changelog of 12.0.0](CHANGELOG.md#1200---2021-11-06) for more details to migrate from v11 to v12
|
29
30
|
- Ruby library version over `9.8.0` requires Appium over `1.8`
|
30
31
|
- Ruby library version under `9.7.5` can work with Appium under `1.7`
|
31
32
|
|
data/release_notes.md
CHANGED
@@ -1,3 +1,31 @@
|
|
1
|
+
#### v12.0.0 2021-11-06
|
2
|
+
|
3
|
+
- [3060ef3](https://github.com/appium/ruby_lib/commit/3060ef3bf06c19a79731a49985efa75c3337dd27) Release 12.0.0
|
4
|
+
- [2c76d15](https://github.com/appium/ruby_lib/commit/2c76d15edafb43e8c0124bfd4c1c9e95f61fb725) chore: bump version to 12.0.0
|
5
|
+
- [19bc90f](https://github.com/appium/ruby_lib/commit/19bc90fef5646f3cde201654ae4fd92da2124b1c) docs: update readme
|
6
|
+
- [3239d7f](https://github.com/appium/ruby_lib/commit/3239d7f9a64529c8afc87c2f99a7984eb3057fd5) docs: update changelog
|
7
|
+
- [bbf56a5](https://github.com/appium/ruby_lib/commit/bbf56a5e502bdb1e2b38245c879eafbc7d9c0ea9) chore: bump core to 5.0.0, bump version to rc5
|
8
|
+
- [b785de1](https://github.com/appium/ruby_lib/commit/b785de188f15da76e91c2a10cccd95c13de3c331) chore: bump the version
|
9
|
+
- [d14d151](https://github.com/appium/ruby_lib/commit/d14d15167cc462d75acbef8d7d82b0fb728ec3a5) Merge branch 'master' of github.com:appium/ruby_lib
|
10
|
+
- [35bf3ed](https://github.com/appium/ruby_lib/commit/35bf3edcf6dcbfd0b2122aa32bfb85d7209bc52f) chore: bump core version
|
11
|
+
- [e990681](https://github.com/appium/ruby_lib/commit/e990681bad2932e895d3e706e5db2593d727b2b7) chore: Update rubocop requirement from = 1.22.2 to = 1.22.3 (#910)
|
12
|
+
- [9d3f1b6](https://github.com/appium/ruby_lib/commit/9d3f1b62bc32ef1ea210a92a69d444bc830680f8) docs: remove outdated docs
|
13
|
+
- [1049a68](https://github.com/appium/ruby_lib/commit/1049a688cbd11b468002e0fb1c1d1a960a6350c7) chore: bump version to 12.0.0.rc3
|
14
|
+
- [8448f29](https://github.com/appium/ruby_lib/commit/8448f299ad91cf47f69c961da811310cd13d906b) chore: remove selendroid stuff
|
15
|
+
- [171f3bd](https://github.com/appium/ruby_lib/commit/171f3bd0a9443a7c0c386c8a2c1340f6117c4aa9) chore: update tests with W3C spec for interactions (#909)
|
16
|
+
- [01505ed](https://github.com/appium/ruby_lib/commit/01505ed5bf51ce386f285ae1790b91f48bc38487) chore: bump version
|
17
|
+
- [8a873f2](https://github.com/appium/ruby_lib/commit/8a873f2c0606488b640d0c4c21237ddb5db97516) chore: bump core version to rc6
|
18
|
+
- [2bf24f2](https://github.com/appium/ruby_lib/commit/2bf24f2fc93141415fee1f43a5434a722c64e576) chore: Update fakefs requirement from ~> 1.3.0 to ~> 1.4.0 (#906)
|
19
|
+
- [7e9f58c](https://github.com/appium/ruby_lib/commit/7e9f58c483f1c600525d9dc1584b7a4712a33b6a) chore: Update rubocop requirement from = 1.22.1 to = 1.22.2 (#907)
|
20
|
+
- [5683456](https://github.com/appium/ruby_lib/commit/5683456f6c6f434d3fa1490a250d23acc3033729) feat: apply core 5.x for selenium v4 (#905)
|
21
|
+
- [c0098b4](https://github.com/appium/ruby_lib/commit/c0098b480786ce0442d3d06bf4d3d161375c760d) chore: Update rubocop requirement from = 1.12.0 to = 1.12.1 (#904)
|
22
|
+
- [2adbb0e](https://github.com/appium/ruby_lib/commit/2adbb0e03e55f57f0c4001d1577d1577dfd63ae2) chore: Update rubocop requirement from = 1.11.0 to = 1.12.0 (#903)
|
23
|
+
- [83769cc](https://github.com/appium/ruby_lib/commit/83769cc9bc8a96cb0526e950a9b7e8d656e84390) chore: Update rubocop requirement from = 1.8.1 to = 1.11.0 (#902)
|
24
|
+
- [6e6b61d](https://github.com/appium/ruby_lib/commit/6e6b61d455773147c76f41df65503fb6d61d6019) chore: Update tomlrb requirement from ~> 1.1 to >= 1.1, < 3.0 (#886)
|
25
|
+
- [0e34f82](https://github.com/appium/ruby_lib/commit/0e34f82310b9906af858ccf5230a7b0f23fd12f9) chore: Create Dependabot config file (#900)
|
26
|
+
- [4783382](https://github.com/appium/ruby_lib/commit/47833829bed009416949ed8ecd60e1a8356e28ce) chore: address 11.2
|
27
|
+
|
28
|
+
|
1
29
|
#### v11.2.0 2021-01-25
|
2
30
|
|
3
31
|
- [06f2e54](https://github.com/appium/ruby_lib/commit/06f2e54b4b55df25e624272b5a2cd7b23a000298) Release 11.2.0
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appium_lib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 12.0.0
|
4
|
+
version: 12.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- code@bootstraponline.com
|
@@ -9,22 +9,22 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-
|
12
|
+
date: 2021-11-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: appium_lib_core
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- -
|
18
|
+
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 5.0.0
|
20
|
+
version: 5.0.0
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- -
|
25
|
+
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 5.0.0
|
27
|
+
version: 5.0.0
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: nokogiri
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -161,14 +161,14 @@ dependencies:
|
|
161
161
|
requirements:
|
162
162
|
- - '='
|
163
163
|
- !ruby/object:Gem::Version
|
164
|
-
version: 1.22.
|
164
|
+
version: 1.22.3
|
165
165
|
type: :development
|
166
166
|
prerelease: false
|
167
167
|
version_requirements: !ruby/object:Gem::Requirement
|
168
168
|
requirements:
|
169
169
|
- - '='
|
170
170
|
- !ruby/object:Gem::Version
|
171
|
-
version: 1.22.
|
171
|
+
version: 1.22.3
|
172
172
|
- !ruby/object:Gem::Dependency
|
173
173
|
name: spec
|
174
174
|
requirement: !ruby/object:Gem::Requirement
|
@@ -228,12 +228,10 @@ files:
|
|
228
228
|
- docs/android_docs.md
|
229
229
|
- docs/android_uiautomator.md
|
230
230
|
- docs/docs.md
|
231
|
-
- docs/index_paths.md
|
232
231
|
- docs/ios_docs.md
|
233
232
|
- docs/ios_xcuitest.md
|
234
233
|
- docs/migration.md
|
235
234
|
- docs/parallel.md
|
236
|
-
- docs/travis.sample.yml
|
237
235
|
- docs/w3c.md
|
238
236
|
- lib/appium_lib.rb
|
239
237
|
- lib/appium_lib/android/android.rb
|
@@ -308,9 +306,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
308
306
|
version: '2.6'
|
309
307
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
310
308
|
requirements:
|
311
|
-
- - "
|
309
|
+
- - ">="
|
312
310
|
- !ruby/object:Gem::Version
|
313
|
-
version:
|
311
|
+
version: '0'
|
314
312
|
requirements: []
|
315
313
|
rubygems_version: 3.2.15
|
316
314
|
signing_key:
|
data/docs/index_paths.md
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
**Deprecated** Because iOS driver for UIAutomation is deprecated.
|
2
|
-
|
3
|
-
# Index Paths on iOS
|
4
|
-
|
5
|
-
Elements on iOS have an [index path attribute](https://github.com/appium/appium-uiauto/blob/2cf1e30801263dfc01627ded28a1be5af1083bc5/uiauto/lib/element-patch/tree-patch.js#L9)
|
6
|
-
that appium calculates when the page source is requested. Note this is not the same as xpath.
|
7
|
-
|
8
|
-
> <UIAStaticText name="Alerts" label="Alerts" value="Alerts" dom="" enabled="true" valid="true" visible="true" hint="" path="/0/1/1/10/0" x="17.578125" y="596" width="53.90625" height="25.78125">
|
9
|
-
|
10
|
-
The index path can be used by calling [getElementByIndexPath]( https://github.com/appium/appium-uiauto/blob/af1befa8208074686cd38b845ddefabc057106fc/uiauto/lib/mechanic-ext/xpath-ext.js#L239):
|
11
|
-
|
12
|
-
```ruby
|
13
|
-
# ruby example # For Appium(automation name), not XCUITest
|
14
|
-
execute_script('$.getElementByIndexPath("/0/1/1/10/0")').text # Alerts
|
15
|
-
```
|
16
|
-
|
17
|
-
Internally what happens is `/0/1/1/10/0` is transformed into `1/1/10/0` and executed as follows:
|
18
|
-
|
19
|
-
```ruby
|
20
|
-
# ruby example # For Appium(automation name), not XCUITest
|
21
|
-
execute_script('$.mainApp().elements()[1].elements()[1].elements()[10].elements()[0]').text # Alerts
|
22
|
-
```
|
23
|
-
|
24
|
-
The initial 0 refers to the context so that's [discarded](https://github.com/appium/appium-uiauto/blob/af1befa8208074686cd38b845ddefabc057106fc/uiauto/lib/mechanic-ext/xpath-ext.js#L218).
|
25
|
-
|
26
|
-
In summary, you shouldn't try and convert the index path to an xpath. It's meant to be used via the built in helper method.
|
data/docs/travis.sample.yml
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
language: objective-c
|
2
|
-
sudo: false
|
3
|
-
osx_image: xcode8.3
|
4
|
-
|
5
|
-
cache: bundler
|
6
|
-
|
7
|
-
rvm:
|
8
|
-
- 2.4
|
9
|
-
|
10
|
-
install:
|
11
|
-
- bundle install
|
12
|
-
- npm install -g appium@1.6.4
|
13
|
-
|
14
|
-
before_script:
|
15
|
-
- appium --log-level warn &
|
16
|
-
|
17
|
-
script:
|
18
|
-
- bundle exec rake rubocop
|
19
|
-
- cd ios_tests; rake ios
|
20
|
-
|
21
|
-
notifications:
|
22
|
-
email:
|
23
|
-
on_success: never
|
24
|
-
on_failure: never
|