File tree 1 file changed +8
-9
lines changed
1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -31,19 +31,18 @@ gem install --no-rdoc --no-ri appium_lib
31
31
#### Simple Usage
32
32
33
33
``` ruby
34
+ require ' rubygems'
34
35
require ' appium_lib'
35
36
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' }
38
39
Appium ::Driver .new (app).start_driver
39
40
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
+ }
47
46
Appium ::Driver .new (apk).start_driver
48
47
```
49
48
You can’t perform that action at this time.
0 commit comments