Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

fix: use newPage method #123

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/setup/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const bootstrap = async (
): Promise<[Dappeteer, Page, Browser]> => {
const browser = await launch(puppeteerLib, launchOptions);
const dappeteer = await setupMetamask(browser, { seed, password, showTestNets });
const pages = await browser.pages();
const page = await browser.newPage();

return [dappeteer, pages[0], browser];
return [dappeteer, page, browser];
};