Skip to content

Commit

Permalink
Update test1.js
Browse files Browse the repository at this point in the history
  • Loading branch information
pili-book authored Jul 12, 2024
1 parent 82f37c7 commit 48c285e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test1.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
const puppeteer = require('puppeteer');
const init = async () => {
// 启动浏览器
const browser = await puppeteer.launch({
Expand All @@ -7,7 +8,7 @@ const init = async () => {
});
const page = await browser.newPage();
// 跳转到相应的网站
await page.goto("https://example.com");
await page.goto('https://www.zoho.com/mail/');

// 关闭浏览器
await browser.close();

0 comments on commit 48c285e

Please sign in to comment.