当前位置:网站首页>Browsercontext class of puppeter
Browsercontext class of puppeter
2022-06-12 16:13:00 【crayon-shin-chan】
file :puppeteer/api.md at main · puppeteer/puppeteer · GitHub
1. brief introduction
BrowserContexts Provides a method of operating multiple independent browser sessions .
When you start the browser , Use a default BrowserContext.
browser.newPage() Method to create a page in the default browser context .
If the page opens another page , adopt window.open, The pop-up window will belong to the browser context of the parent page .
Puppeteer Allows you to create an invisible browser context
The stealth browser context does not write any browsing data to disk .
2. Create context
createIncognitoBrowserContext Method to create an invisible browser context
const context = await browser.createIncognitoBrowserContext();
const page = await context.newPage();
await page.goto('https://example.com');
await context.close();3.browser
Get the browser to which the context belongs
browser(): Browser;4.pag
边栏推荐
- Apache kylin Adventure
- Analysis of China's cargo transport volume, cargo transport turnover and port cargo in 2021 [figure]
- Project training of Software College of Shandong University rendering engine system basic renderer (III)
- FPGA (III) trigger and latch
- < 山东大学软件学院项目实训 > 渲染引擎系统——基础渲染器(三)
- C regular expression
- Interview: hashcode() and equals()
- < 山东大学软件学院项目实训 > 渲染引擎系统——辐射预计算(九)
- 小程序:如何在插件中获取用户手机号
- TS 22.011
猜你喜欢

redis String类型常见命令

acwing 802. 区间和 (离散化)

The common hand, the original hand and the excellent hand from the sum of Fibonacci sequence

同源?跨域?如何解决跨域?

IDEA中文棱形乱码错误解决方法--控制台中文输出棱形乱码

Project training of Software College of Shandong University rendering engine system basic renderer (V)

Homology? Cross domain? How to solve cross domain problems?

Review of the development of China's medical beauty (medical beauty) industry in 2021: the supervision is becoming stricter, the market scale is expanding steadily, and the development prospect is bro

批量--04---移动构件

< 山东大学软件学院项目实训 > 渲染引擎系统——点云处理(十)
随机推荐
In 2020, the demand for strain sensors in China will reach 9.006 million, and the market scale will reach 2.292 billion yuan [figure]
面试:‘==‘与equals()之间的区别
Thread pool execution process
glibc 内存管理模型 释放 C库内存缓存
Apache Kylin 历险记
Chapter I linear table
Match single character
From K-means to capsule
acwing795 前缀和(一维)
Interview: hashcode() and equals()
Interview: why do integer wrapper classes try to use equals() to compare sizes
[weekly replay] game 80 of leetcode
(四)GoogleNet複現
The nohup command uses
The common hand, the original hand and the excellent hand from the sum of Fibonacci sequence
Unicom Network Management Protocol block diagram
PHP builds a high-performance API architecture based on sw-x framework (II)
go net库(待续)
Glibc memory management model frees C library memory cache
Step by step steps to create an ABAP program with a custom screen