Skip to content

Commit 8bc5cd9

Browse files
committed
docs: update readme
1 parent 4eb21a8 commit 8bc5cd9

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

README.md

+10-4
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ This library wraps [selenium-webdriver](https://github.com/SeleniumHQ/selenium/w
1212

1313
- https://www.rubydoc.info/gems/appium_lib_core
1414
- You can find working API examples in test code, [test/functional](test/functional)
15+
- Appium 2.0
16+
- https://appium.github.io/appium/docs/en/2.0/ (Not completed yet)
1517

1618
# Migration from v4 to v5
1719

@@ -33,10 +35,12 @@ $ bundle exec parallel_test test/unit/
3335
### Functional Tests
3436
Run functional tests which require the Appium server and real device, Simulator/Emulator.
3537

36-
- Start Appium server
38+
- Start Appium server (Appium 2.0 base)
3739
```bash
38-
$ npm install -g appium opencv4nodejs
39-
$ appium --relaxed-security # To run all tests in local
40+
$ npm install -g appium@next
41+
$ appium driver install xcuitest
42+
$ appium driver install uiautomator2 # etc
43+
$ appium --base-path=/wd/hub --relaxed-security # To run all tests in local
4044
```
4145

4246
- Conduct tests
@@ -99,7 +103,7 @@ $ IGNORE_VERSION_SKIP=true CI=true bundle exec rake test:func:android
99103
require 'appium_lib_core'
100104

101105
opts = {
102-
capabilities: { # or { caps: {....} }
106+
capabilities: { # Append capabilities
103107
platformName: :ios,
104108
platformVersion: '11.0',
105109
deviceName: 'iPhone Simulator',
@@ -125,6 +129,8 @@ $ IGNORE_VERSION_SKIP=true CI=true bundle exec rake test:func:android
125129
$ ruby test.rb
126130
```
127131

132+
[Appium::Core.for](https://www.rubydoc.info/github/appium/ruby_lib_core/Appium/Core/Driver#for-class_method) documentation has more example to build a new driver instance.
133+
128134
More examples are in [test/functional](test/functional)
129135

130136
### Capabilities

0 commit comments

Comments
 (0)