当前位置:网站首页>selenium chrome 禁用js 禁用图片
selenium chrome 禁用js 禁用图片
2022-06-26 15:16:00 【nongcunqq】
import requests
from selenium import webdriver
options=webdriver.ChromeOptions()
prefs = {
'profile.default_content_setting_values': {
'images': 2,
'javascript': 2 #2即为禁用的意思
}
}
options.add_experimental_option('prefs', prefs)
driver = webdriver.Chrome(chrome_options=options)
driver.get('http://www.baidu.com')
driver.implicitly_wait(20)
边栏推荐
- Unity C # e-learning (IX) -- wwwfrom
- 评价——TOPSIS
- 【TcaplusDB知识库】TcaplusDB单据受理-事务执行介绍
- JS simple deepcopy (Introduction recursion)
- Is it safe to open a stock account through the account opening link of the broker manager? Or is it safe to open an account in a securities company?
- 功能:crypto-js加密解密
- vue中缓存页面 keepAlive使用
- Sikuli automatic testing technology based on pattern recognition
- 【ceph】CephFS 内部实现(三):快照
- Evaluate:huggingface评价指标模块入门详细介绍
猜你喜欢
Summary of students' learning career (2022)
[tcapulusdb knowledge base] tcapulusdb system user group introduction
RestCloud ETL解决shell脚本参数化
Comparative analysis of restcloud ETL and kettle
【TcaplusDB知识库】TcaplusDB系统管理介绍
【ceph】CephFS 内部实现(三):快照
【TcaplusDB知识库】TcaplusDB系统用户组介绍
评价——模糊综合评价
【TcaplusDB知识库】TcaplusDB单据受理-事务执行介绍
BLE抓包调试信息分析
随机推荐
Sikuli 基于图形识别的自动化测试技术
刷题笔记(十九)--二叉树:二叉搜索树的修改与构造
Redis cluster messages
[tcapulusdb knowledge base] tcapulusdb doc acceptance - Introduction to creating game area
有Cmake的工程交叉编译到链接时报错找不到.so动态库文件
Unity C # e-learning (VIII) -- www
PHP file upload 00 truncation
Use of abortcontroller
【微信小程序】事件绑定,你搞懂了吗?
Summary of students' learning career (2022)
[CEPH] cephfs internal implementation (I): Concept -- undigested
MySQL数据库基本SQL语句教程之高级操作
[wechat applet] event binding, do you understand?
使用RestCloud ETL Shell组件实现定时调度DataX离线任务
买股票通过券商经理的开户二维码开户资金是否安全?想开户炒股
TCP/IP协议竟然有这么多漏洞?
Evaluation - TOPSIS
Redis transaction and watch instruction
粒子滤波 PF——在机动目标跟踪中的应用(粒子滤波VS扩展卡尔曼滤波)
[CEPH] cephfs internal implementation (II): example -- undigested