Skip to content

tieutantan/NodeJS-Playwright-Boilerplater

Repository files navigation

NodeJS-Playwright-Boilerplater

Playwright Enhanced For Automation Tasks!

Features

  • Support install extensions on the browser.
  • Custom multiple geolocation.
  • Block resource load from domains.
  • Multiple run modes.
  • playwright-extra.

Installation

npm i

Coming Soon...

  • xxxxxx
// xxxxxx

Locations

Hoan Kiem
GEOLOCATION : {latitude: 21.0304, longitude: 105.8446},

Binh Thanh
GEOLOCATION : {latitude: 10.8121, longitude: 106.6971},

New York
GEOLOCATION : {latitude: 40.697, longitude: -74.144},

Le Chan
GEOLOCATION : {latitude: 20.8357, longitude: 106.66699},

Debug Mouse Position

 await page.evaluate(() => {
    document.addEventListener('mousemove', (event) => {
        console.log('Mouse X:', event.clientX, 'Mouse Y:', event.clientY);
    });
});
await page.pause();

Paths

Google Chrome: C:\Users\%USERNAME%\AppData\Local\Google\Chrome\User Data\Default
Chromium: C:\Users\%USERNAME%\AppData\Local\Chromium\User Data\Default