当前位置:网站首页>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
边栏推荐
- Project training of Software College of Shandong University rendering engine system radiation pre calculation (VIII)
- 面试:了解装箱和拆箱操作吗?
- < 山东大学软件学院项目实训 > 渲染引擎系统——基础渲染器(四)
- Example of bit operation (to be continued)
- 小飞页升级变智能修复Bug更快速了
- acwing795 前缀和(一维)
- Getting started with JMeter
- Global and Chinese markets of three-phase induction motors 2022-2028: Research Report on technology, participants, trends, market size and share
- Analysis on the development status and direction of China's cultural tourism real estate industry in 2021: the average transaction price has increased, and cultural tourism projects continue to innova
- Chapter I linear table
猜你喜欢

acwing794 高精度除法

Great God cracked the AMD k6-2+ processor 22 years ago and opened the hidden 128KB L2 cache

小程序:如何在插件中获取用户手机号

线程池执行流程

Classic case of solidity - Smart games

< 山东大学软件学院项目实训 > 渲染引擎系统——基础渲染器(五)

超详细干货!Docker+PXC+Haproxy搭建高可用强一致性的MySQL集群

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

聊聊事件监听那些事-上

Decision tree classification and examples
随机推荐
Defer learning in golang
当编程纳入到高考。。。
记一篇IT培训日记067-好人感恩,坏人无错
acwing795 前缀和(一维)
Web UI automation test
5-5配置Mysql复制 基于日志点的复制
acwing 803. 区间合并
The common hand, the original hand and the excellent hand from the sum of Fibonacci sequence
[OWT server] customized script 3: server construction
What is fintech? How fintech can help small businesses succeed
acwing794 高精度除法
go net库(待续)
Explore the Apache shardingsphere SQL parse format function
Applet: how to get the user's mobile number in the plug-in
同源?跨域?如何解决跨域?
< 山东大学软件学院项目实训 > 渲染引擎系统——基础渲染器(四)
Project training of Software College of Shandong University rendering engine system point cloud processing (10)
Glibc memory management model frees C library memory cache
redis 通用命令
Global and Chinese markets for air sampling calibration pumps 2022-2028: Research Report on technology, participants, trends, market size and share