当前位置:网站首页>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
边栏推荐
- Particle filter PF -- Application in maneuvering target tracking (particle filter vs extended Kalman filter)
- JS events
- 2022 Beijing Shijingshan District specializes in the application process for special new small and medium-sized enterprises, with a subsidy of 100000-200000 yuan
- selenium将元素保存为图片
- Applicable and inapplicable scenarios of mongodb series
- SAP sales data actual shipment data export sales
- There are so many vulnerabilities in tcp/ip protocol?
- [CEPH] cephfs internal implementation (IV): how is MDS started-- Undigested
- [tcapulusdb knowledge base] tcapulusdb doc acceptance - create business introduction
- Notes on brushing questions (19) -- binary tree: modification and construction of binary search tree
猜你喜欢

canvas三个圆点闪烁动画

查词翻译类应用使用数据接口api总结

# 粒子滤波 PF——三维匀速运动CV目标跟踪(粒子滤波VS扩展卡尔曼滤波)

【TcaplusDB知识库】TcaplusDB数据构造介绍

Comparative analysis of restcloud ETL and kettle

1. accounting basis -- several major elements of accounting (general accounting theory, accounting subjects and accounts)

feil_ The working directory on the left of uvission4 disappears

AbortController的使用

How to handle 2gcsv files that cannot be opened? Use byzer

Lexin AWS IOT expresslink module achieves universal availability
随机推荐
JS events
Notes on brushing questions (19) -- binary tree: modification and construction of binary search tree
selenium chrome 禁用js 禁用图片
【TcaplusDB知识库】TcaplusDB系统用户组介绍
[CEPH] MKDIR | mksnap process source code analysis | lock state switching example
Cache page keepalive use in Vue
Auto Sharding Policy will apply Data Sharding policy as it failed to apply file Sharding Policy
Analysis of ble packet capturing debugging information
【ceph】cephfs的锁 笔记
Sikuli automatic testing technology based on pattern recognition
Utilisation d'abortcontroller
[file] VFS four structs: file, dentry, inode and super_ What is a block? difference? Relationship-- Editing
1. accounting basis -- several major elements of accounting (general accounting theory, accounting subjects and accounts)
【SNMP】snmp trap 介绍、安装、命令|Trap的发送与接收代码实现
手机上怎么开户?在线开户安全么?
svg环绕地球动画js特效
【微信小程序】事件绑定,你搞懂了吗?
Keil4 opens the single-chip microcomputer project to a blank, and the problem of 100% program blocking of cpu4 is solved
golang 临时对象池优化
MySQL数据库基本SQL语句教程之高级操作