Changing the path to absolute
This commit is contained in:
parent
35423d6eef
commit
a231476d3a
2 changed files with 2 additions and 2 deletions
|
|
@ -9,7 +9,7 @@ const TIMEOUT = 20 * 1000; // 20s, default is 30s
|
||||||
// could change to .mjs to get top-level-await, but would then also need to change require to import and dynamic import for stealth below would just add more async/await
|
// could change to .mjs to get top-level-await, but would then also need to change require to import and dynamic import for stealth below would just add more async/await
|
||||||
(async () => {
|
(async () => {
|
||||||
// https://playwright.dev/docs/auth#multi-factor-authentication
|
// https://playwright.dev/docs/auth#multi-factor-authentication
|
||||||
const context = await chromium.launchPersistentContext('userDataDir', {
|
const context = await chromium.launchPersistentContext(`${__dirname}\\userDataDir`, {
|
||||||
channel: 'chrome', // https://playwright.dev/docs/browsers#google-chrome--microsoft-edge
|
channel: 'chrome', // https://playwright.dev/docs/browsers#google-chrome--microsoft-edge
|
||||||
headless: false,
|
headless: false,
|
||||||
viewport: { width: 1280, height: 1280 },
|
viewport: { width: 1280, height: 1280 },
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ const TIMEOUT = 20 * 1000; // 20s, default is 30s
|
||||||
// could change to .mjs to get top-level-await, but would then also need to change require to import and dynamic import for stealth below would just add more async/await
|
// could change to .mjs to get top-level-await, but would then also need to change require to import and dynamic import for stealth below would just add more async/await
|
||||||
(async () => {
|
(async () => {
|
||||||
// https://playwright.dev/docs/auth#multi-factor-authentication
|
// https://playwright.dev/docs/auth#multi-factor-authentication
|
||||||
const context = await chromium.launchPersistentContext('userDataDir', {
|
const context = await chromium.launchPersistentContext(`${__dirname}\\userDataDir`, {
|
||||||
channel: 'chrome', // https://playwright.dev/docs/browsers#google-chrome--microsoft-edge
|
channel: 'chrome', // https://playwright.dev/docs/browsers#google-chrome--microsoft-edge
|
||||||
headless: false,
|
headless: false,
|
||||||
viewport: { width: 1280, height: 1280 },
|
viewport: { width: 1280, height: 1280 },
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue