Skip to content

joaoscheuermann/pptr-human-keyboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pptr-human-keyboard

This library helps emulating the human typing behavior on Puppeteer.

Instalation

npm install pptr-human-keyboard

Usage

// You should have Puppeteer installed
const puppeteer = require('puppeteer')

// Imports the module
const { createKeyboard } = require('pptr-human-keyboard')

const init = async () => {
  // Initializes Puppeteer
  const browser = await puppeteer.launch()
  const page = await browser.newPage()

  // Initialize the library
  const keyboard = createKeyboard(page)

  // do some stuff ...

  await keyboard.type('Lorem Ipsum') // Unleash the magic

  await browser.close()
}

init()

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published