Official docs getting started

npm install -g appium

There are two drivers: expresso and uiautomator2, I’m picking the first one because with Espresso we can test touch action without existing on the screen.

This driver leverages Google’s UiAutomator2 technology to facilitate automation on a device or emulator.

To verify that all of Appium’s dependencies are met you can use appium-doctor. Install it with npm install -g appium-doctor, then run the appium-doctor command, supplying the --ios or --android flags to verify that all of the dependencies are set up correctly.

Startappium

appium

Initialize repo:

npm init -y
npm install webdriverio

Script:

 
const wdio = require("webdriverio");
 
const opts = {
  path: '/wd/hub',
  port: 4723,
  capabilities: {
    platformName: "Android",
    platformVersion: "8",
    deviceName: "Android Emulator",
    app: "/path/to/the/downloaded/ApiDemos-debug.apk",
    appPackage: "io.appium.android.apis",
    appActivity: ".view.TextFields",
    automationName: "UiAutomator2"
  }
};
 
async function main () { 
const client = await wdio.remote(opts); 
const field = await client.$("android.widget.EditText"); 
await field.setValue("Hello World!"); 
const value = await field.getText(); assert.strictEqual(value,"Hello World!"); 
await client.deleteSession(); 
}
 
async function sendSms() {
driver.sendSms('555-123-4567', 'Hey lol');<div style="text-align: center">जय_style="text-alignश्री_कृष्णा ||</div>
Date: Sun, Jun 5th 2022 ( #05_Jun_2022 )
 
---
Daily Quote
> Obstacles are those frightful things you see when you take your eyes off your goal.
><cite>Henry Ford</cite>
 
 
## Work
 
 
## Personal/ Other
#### Today's tasks: (Include small tasks to boost Dopamine)
1. [ ] Do only/ excatly 1 pushup.
2. [ ] Read only/excatly one #sholk from [[Bhagwad Geeta]].
3. [ ] Do only/ exactly 1 Surya Namaskaram.
4. [ ] Write/ execute excatly one line of code in any language.
5. [ ] Do meditation mentioned in #Shrimad_Bhagwat_Geeta for 1min.
 
-----
#### Hello Diary,
 
 
---
#### Feelo meter
| Parameter  | Rating |  
| --- | --- |
| How was the meditation, yoga and pranayayam session |  |
| How was did you feel today                                            | ★★★★★  |     |                                                     |     |
| How was office work                                                   |        |     |                                                     |     |
| How was learning                                                      |        |     |                                                     |     |
| How much progress was made Personal Projects                          |        |     |                                                     |     |
| Did you bring a smile on someone's face or made their day/life better |        |     |                                                     |     |
 
}
 
main();