Examples
Looping previews of clicks, text selection, and dragging. Run the code with your Playwright page. Get started.
Move and click
Click me
await human.click(page.getByRole('button', { name: 'Click me' }));Text selection
Select these words.
await human.selectText(page.getByText('these words', { exact: true }));Drag & Drop
Drop here
Drag me
await human.drag( page.getByText('Drag me', { exact: true }), page.getByText('Drop here', { exact: true }), { duration: 1400 },);