当前位置:网站首页>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
边栏推荐
- Summary of students' learning career (2022)
- AUTO sharding policy will apply DATA sharding policy as it failed to apply FILE sharding policy
- Auto Sharding Policy will apply Data Sharding policy as it failed to apply file Sharding Policy
- AbortController的使用
- 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?
- How do I open an account on my mobile phone? Is online account opening safe?
- 音视频学习(三)——sip协议
- 有Cmake的工程交叉编译到链接时报错找不到.so动态库文件
- 效率超级加倍!pycharm十个小技巧就是这么神
- CNN优化trick
猜你喜欢

# 粒子滤波 PF——三维匀速运动CV目标跟踪(粒子滤波VS扩展卡尔曼滤波)
![[tcapulusdb knowledge base] tcapulusdb OMS business personnel permission introduction](/img/7b/8c4f1549054ee8c0184495d9e8e378.png)
[tcapulusdb knowledge base] tcapulusdb OMS business personnel permission introduction

Applet: uniapp solves vendor JS is too large

【C语言练习——打印空心上三角及其变形】

效率超级加倍!pycharm十个小技巧就是这么神

IDEA本地代理后,无法下载插件

查词翻译类应用使用数据接口api总结
![[tcapulusdb knowledge base] tcapulusdb doc acceptance - transaction execution introduction](/img/7c/25a88f46e02cebd2e003b9590b9c13.png)
[tcapulusdb knowledge base] tcapulusdb doc acceptance - transaction execution introduction

Evaluate:huggingface detailed introduction to the evaluation index module

nanoPi Duo2连接wifi
随机推荐
[wechat applet] event binding, do you understand?
Unity C # e-learning (IX) -- wwwfrom
Auto Sharding Policy will apply Data Sharding policy as it failed to apply file Sharding Policy
Unity C # e-learning (VIII) -- www
There are so many vulnerabilities in tcp/ip protocol?
# 粒子滤波 PF——三维匀速运动CV目标跟踪(粒子滤波VS扩展卡尔曼滤波)
Summary of students' learning career (2022)
安全Json协议
[tcapulusdb knowledge base] tcapulusdb doc acceptance - Introduction to creating game area
Unity C # e-learning (10) -- unitywebrequest (1)
【ceph】CephFS 内部实现(三):快照
Evaluate:huggingface评价指标模块入门详细介绍
Restcloud ETL resolves shell script parameterization
音视频学习(一)——PTZ控制原理
音视频学习(三)——sip协议
vsomeip3 双机通信文件配置
AbortController的使用
English grammar_ Adjective / adverb Level 3 - original sentence pattern
JS之手写 bind、apply、call
效率超级加倍!pycharm十个小技巧就是这么神