Skip to content

Simulate human mouse drag behavior based on playwright.

Notifications You must be signed in to change notification settings

wdkang123/human-drag

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HumanDrag

简介

基于playwright的模拟人类的鼠标拖拽行为。
demo1
demo2

安装

npm install

调用

const dragAndDrop = require('./human-drag').dragAndDrop;
const browser = await require('playwright').firefox.launch({ headless: false });
const page = await browser.newPage();
await page.goto('somesite');
await dragAndDrop(page, {x: 100, y: 50 }, {x: 400, y: 100 });

运行示例

node test.js 

About

Simulate human mouse drag behavior based on playwright.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%