当前位置:网站首页>Browser class for getting started with puppeter
Browser class for getting started with puppeter
2022-06-11 10:05:00 【crayon-shin-chan】
file :puppeteer/api.md at main · puppeteer/puppeteer · GitHub
1. brief introduction
adopt puppeteer.launch or puppeteer.connect Connect to Chromium Instance creates a browser instance
const puppeteer = require('puppeteer');
(async () => {
const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.goto('https://example.com');
await browser.close();
})();2.pages
Returns an array of all open pages in the browser .
In the case of multiple browser contexts , Returns an array containing all the context pages
Invisible pages , Such as background_page , Will not be listed , Can pass Target.page find
pages(): Promise<Page[]>;There will be a default page when the browser is created
3.newPage
Create a new... In the default browser context Page
<边栏推荐
- Ugui picture wall
- Leetcode brushing questions - hand tearing binary tree
- 【Objective-C】‘NSAutoreleasePool‘ is unavailable: not available in automatic reference counting mode
- 转载:LinearLayout+Fragment实现下导航栏效果
- Function and function of wandfluh proportional valve
- 【Objective-C】动态创建控件
- After four years of outsourcing, it was abandoned
- php 中使用exec显示报错
- 关于马格齿轮泵的应用领域都有哪些?总结一下
- Tenthousand words thoroughly learn heap and binary tree
猜你喜欢

After four years of outsourcing, it was abandoned

What are the ABAP keywords and syntax that cannot be used in the ABAP cloud environment?

Empire CMS imitation "game bird" template source code /92kaifa version large mobile game portal template

【Objective-C】‘NSAutoreleasePool‘ is unavailable: not available in automatic reference counting mode

图片规则翻页

What are the functions and features of EMG linear light emitter?

Integer lifting example

Troubleshooting the error ora-12545 reported by scanip in Oracle RAC

Beginning简约博客emlog主题模板V3

UGUI
随机推荐
穆格测试控制器的作用和应用场合有哪些
【bert】:在训练bert 语义相似的任务时,last ave state 的计算
VK2C22A/B抗干扰系列电表,水表段码LCD液晶驱动芯片资料(可定制DICE/COG)
关于CI框架批量导出至压缩文件
Mysql--事务
Servlet 的初次部署
【torch】: 并行训练并且可以动态设置第一个gpu的batch size
不同CV任务的标注类型
MD5 learning
不卷了!入职字节跳动一周就果断跑了。
MySQL transaction
Tap and longtap encapsulation of touch events -- from Ono
Standard dual airbags, Changan Lumin listed, starting at 48900 yuan
C+每日练题(15)
Introduction to ZigBee module wireless transmission star topology networking structure
全局池化–Pytorch
Technology cloud report: privacy computing under the wave of Web3.0
Q1营收超华尔街预期,挚文集团的价值等待回归
Image quality evaluation including Matlab source code
Project lifecycle