当前位置:网站首页>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)
边栏推荐
- Is it safe to buy stocks and open accounts through the QR code of the securities manager? Want to open an account for stock trading
- 一键安装gcc脚本
- JS之简易deepCopy(简介递归)
- [tcapulusdb knowledge base] tcapulusdb system user group introduction
- 编译配置in文件
- [tcapulusdb knowledge base] Introduction to tcapulusdb system management
- There are so many vulnerabilities in tcp/ip protocol?
- [CEPH] cephfs internal implementation (I): Concept -- undigested
- A blog to thoroughly master the theory and practice of particle filter (PF) (matlab version)
- 【TcaplusDB知识库】TcaplusDB OMS业务人员权限介绍
猜你喜欢

数据库-视图

【TcaplusDB知识库】TcaplusDB单据受理-创建业务介绍

【ceph】CephFS 内部实现(四):MDS是如何启动的?--未消化
![[CEPH] cephfs internal implementation (I): Concept -- undigested](/img/5c/ca666118848b4f3042b834fb79d27f.png)
[CEPH] cephfs internal implementation (I): Concept -- undigested

Applet: uniapp solves vendor JS is too large

一篇博客彻底掌握:粒子滤波 particle filter (PF) 的理论及实践(matlab版)
![[tcapulusdb knowledge base] Introduction to tcapulusdb system management](/img/5a/28aaf8b115cbf4798cf0b201e4c068.png)
[tcapulusdb knowledge base] Introduction to tcapulusdb system management

Restcloud ETL resolves shell script parameterization

Evaluation - TOPSIS

Function: crypto JS encryption and decryption
随机推荐
Unity C # e-learning (IX) -- wwwfrom
Cache page keepalive use in Vue
【毕业季·进击的技术er】 什么是微信小程序,带你推开小程序的大门
Unity C # e-learning (VIII) -- www
Talk about the recent situation of several students from Tsinghua University
北京房山区专精特新小巨人企业认定条件,补贴50万
[tcapulusdb knowledge base] Introduction to tcapulusdb system management
English语法_形容词/副词3级 - 原级句型
小程序:uniapp解决 vendor.js 体积过大的问题
Comparative analysis of restcloud ETL and kettle
IDEA本地代理后,无法下载插件
# 粒子滤波 PF——三维匀速运动CV目标跟踪(粒子滤波VS扩展卡尔曼滤波)
【小程序实战系列】小程序框架 页面注册 生命周期 介绍
评价——模糊综合评价
shell脚本多进程并发写法实例(高阶修炼)
Redis cluster
在校生学习生涯总结(2022)
Unity C# 网络学习(十)——UnityWebRequest(二)
【ceph】CephFS 内部实现(四):MDS是如何启动的?--未消化
使用RestCloud ETL Shell组件实现定时调度DataX离线任务