ns-rpa-base

1.0.5 • Public • Published

NS-RPA-BASE

Como instalar

  1. Install openjdk-8-jdk on your pc to use pressOnKeyBoard function
  2. npm install ns-rpa-base@latest
// @ts-check

import { browser } from "ns-rpa-base";

async function main() {
  const options = {
    captchaApiKey: "",
    headless: false,
    executablePath: "/opt/google/chrome/google-chrome",
    userDataDir: `/home/${process.env.USER}/.config/google-chrome/Default`,
    defaultViewport: {
      width: 1920,
      height: 1080,
    },
    args: ["--start-maximized", "--no-sandbox", "--disable-setuid-sandbox"],
  };

  const chrome = await browser(options);
  const page = await chrome.newPage();

  await page.goto("https://www.google.com/");
}

main();

author: @pedr0aroucha

Readme

Keywords

Package Sidebar

Install

npm i ns-rpa-base

Weekly Downloads

1

Version

1.0.5

License

MIT

Unpacked Size

3.01 kB

Total Files

4

Last publish

Collaborators

  • integraideias