当前位置:网站首页>Selenium chrome disable JS disable pictures
Selenium chrome disable JS disable pictures
2022-06-26 15:41:00 【nongcunqq】
import requests
from selenium import webdriver
options=webdriver.ChromeOptions()
prefs = {
'profile.default_content_setting_values': {
'images': 2,
'javascript': 2 #2 It means disabled
}
}
options.add_experimental_option('prefs', prefs)
driver = webdriver.Chrome(chrome_options=options)
driver.get('http://www.baidu.com')
driver.implicitly_wait(20)
Reference resources
https://blog.csdn.net/lws123253/article/details/90759417
边栏推荐
- MySQL数据库基本SQL语句教程之高级操作
- [tcapulusdb knowledge base] tcapulusdb system user group introduction
- 【ceph】CephFS 内部实现(二):示例--未消化
- JS handwritten bind, apply, call
- 【TcaplusDB知识库】TcaplusDB单据受理-建表审批介绍
- How to handle 2gcsv files that cannot be opened? Use byzer
- 【TcaplusDB知识库】TcaplusDB单据受理-创建游戏区介绍
- 查词翻译类应用使用数据接口api总结
- 【毕业季·进击的技术er】 什么是微信小程序,带你推开小程序的大门
- Unity C # e-learning (10) -- unitywebrequest (2)
猜你喜欢

【TcaplusDB知识库】TcaplusDB系统用户组介绍

Keil4 opens the single-chip microcomputer project to a blank, and the problem of 100% program blocking of cpu4 is solved
![[wechat applet] event binding, do you understand?](/img/83/6242e972538d0423fd4155140bb521.png)
[wechat applet] event binding, do you understand?

2Gcsv文件打不开怎么处理,使用byzer工具

vsomeip3 双机通信文件配置

Applet: uniapp solves vendor JS is too large
![[CEPH] cephfs internal implementation (IV): how is MDS started-- Undigested](/img/f9/8e2b55a33e1613a49e08e119ae0086.png)
[CEPH] cephfs internal implementation (IV): how is MDS started-- Undigested

el-dialog拖拽,边界问题完全修正,网上版本的bug修复

Use of abortcontroller

10 minutes to understand bim+gis fusion, common BIM data formats and characteristics
随机推荐
SAP GUI 770 Download
[C language practice - printing hollow upper triangle and its deformation]
Particle filter PF -- Application in maneuvering target tracking (particle filter vs extended Kalman filter)
[CEPH] Introduction to cephfs caps
反射修改final
canvas三个圆点闪烁动画
Mongodb series window environment deployment configuration
【TcaplusDB知识库】TcaplusDB系统管理介绍
【TcaplusDB知识库】TcaplusDB单据受理-建表审批介绍
AbortController的使用
HW safety response
【leetcode】701. Insert operation in binary search tree
JS events
【C语言练习——打印空心上三角及其变形】
Seurat to h5ad summary
【TcaplusDB知识库】TcaplusDB单据受理-创建业务介绍
Unity C # e-learning (10) -- unitywebrequest (2)
为什么图像分割任务中经常用到编码器和解码器结构?
【leetcode】701. 二叉搜索树中的插入操作
如何配置使用新的单线激光雷达