Skip to content

Commit a0a74a9

Browse files
Add example of automating preinstalled Android app
1 parent 4569b0e commit a0a74a9

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/docs.md

+16
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,22 @@
1919

2020
--
2121

22+
Example of automating the built in Android settings.
23+
24+
```ruby
25+
# run Pry, and paste the following
26+
apk = {
27+
platformName: :android,
28+
deviceName: :nexus,
29+
appPackage: 'com.android.settings',
30+
appActivity: '.Settings',
31+
appWaitActivity: '.Settings'
32+
}
33+
Appium::Driver.new(caps: apk).start_driver
34+
```
35+
36+
--
37+
2238
Example use of Appium's mobile gesture.
2339

2440
> @driver.execute_script 'mobile: tap', :x => 0, :y => 500

0 commit comments

Comments
 (0)