Skip to content

Commit 4a1f87e

Browse files
Update example
1 parent 6177c49 commit 4a1f87e

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

readme.md

+8-9
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,18 @@ gem install --no-rdoc --no-ri appium_lib
3131
#### Simple Usage
3232

3333
```ruby
34+
require 'rubygems'
3435
require 'appium_lib'
3536

36-
# Start an iOS driver based on APP_PATH
37-
app = { 'APP_PATH' => '/path/to/MyiOS.app' }
37+
# Start iOS driver
38+
app = { app_path: '/path/to/MyiOS.app'}
3839
Appium::Driver.new(app).start_driver
3940

40-
# Start an Android driver
41-
# must quit old driver before starting a new one
42-
driver_quit
43-
apk = { 'APP_PATH' => '/path/to/the.apk',
44-
'APP_PACKAGE' => 'com.example.pkg',
45-
'APP_ACTIVITY' => 'act.Start',
46-
'APP_WAIT_ACTIVITY' => 'act.Splash' }
41+
# Start Android driver
42+
apk = { app_path: '/path/to/the.apk',
43+
app_package: 'com.example.pkg',
44+
app_activity: 'act.Start',
45+
}
4746
Appium::Driver.new(apk).start_driver
4847
```
4948

0 commit comments

Comments
 (0)