0.1.17 • Published 3 years ago
ts-rpa v0.1.17
Installation
npm i -g ts-rpa
Requirements
Installation
- chromedriver
Enviroment
export NODE_PATH=$(npm root -g)
export WEB_BROWSER_HEADLESS=true
export GOOGLE_CLIENT_SECRET=************************
export GOOGLE_CLIENT_ID=************-********************************.apps.googleusercontent.com
export WORKSPACE_DIR=./tmp/
# If you plan to use `RPA.GCP` module, you need to set a service account key file.
# https://cloud.google.com/docs/authentication/getting-started
export GOOGLE_APPLICATION_CREDENTIALS=************-************.json
Usage
ts-rpa sample.ts
Sample
import RPA from "ts-rpa";
(async () => {
try {
await RPA.WebBrowser.get("https://www.google.com/");
const input = await RPA.WebBrowser.findElement(".gLFyf");
await RPA.WebBrowser.sendKeys(input, ["RPA"]);
const element = await RPA.WebBrowser.findElement(
".FPdoLc > center:nth-child(1) > input:nth-child(2)"
);
await RPA.WebBrowser.mouseClick(element);
await RPA.sleep(3000);
await RPA.WebBrowser.takeScreenshot();
} catch (error) {
RPA.SystemLogger.error(error);
} finally {
await RPA.WebBrowser.quit();
}
})();
0.1.17
3 years ago
0.1.16
4 years ago
0.1.15
4 years ago
0.1.14
5 years ago
0.1.13
5 years ago
0.1.12
5 years ago
0.1.11
5 years ago
0.1.10
5 years ago
0.1.9
5 years ago
0.1.8
5 years ago
0.1.7
5 years ago
0.1.6
5 years ago
0.1.5
5 years ago
0.1.4
5 years ago
0.1.3
5 years ago
0.1.2
5 years ago
0.1.1-rc.5
5 years ago
0.1.1-rc.4
5 years ago
0.1.1-rc.3
5 years ago
0.1.1-rc.2
5 years ago
0.1.1-rc.1
5 years ago
0.1.1
5 years ago
0.1.0
5 years ago
0.0.9-rc.1
5 years ago
0.0.9
5 years ago
0.0.8-rc.4
5 years ago
0.0.8-rc.3
6 years ago
0.0.8-rc.2
6 years ago
0.0.8-rc.1
6 years ago
0.0.8
6 years ago
0.0.7
6 years ago
0.0.6
6 years ago
0.0.5-rc.3
6 years ago
0.0.5-rc.2
6 years ago
0.0.5-rc.1
6 years ago
0.0.4-rc.10
6 years ago
0.0.4-rc.9
6 years ago
0.0.4-rc.8
6 years ago
0.0.4-rc.7
6 years ago
0.0.4-rc.6
6 years ago
0.0.4-rc.5
6 years ago
0.0.4-rc.4
6 years ago
0.0.4-rc.3
6 years ago
0.0.4-rc.2
6 years ago
0.0.4-rc.1
6 years ago
0.0.3
6 years ago
0.0.2-rc.4
6 years ago
0.0.2-rc.3
6 years ago
0.0.2-rc.2
6 years ago
0.0.2-rc.1
6 years ago
0.0.1-rc.10
6 years ago
0.0.1-rc.9
6 years ago
0.0.1-rc.8
6 years ago
0.0.1-rc.7
6 years ago
0.0.1-rc.6
6 years ago
0.0.1-rc.5
6 years ago
0.0.1-rc.4
6 years ago
0.0.1-rc.3
6 years ago
0.0.1-rc.2
6 years ago
0.0.1-rc.1
6 years ago
0.0.1
6 years ago