当前位置:网站首页>Selenium reptile
Selenium reptile
2022-06-28 08:16:00 【shane1214】
from selenium import webdriver from selenium.webdriver.chrome.options import Options from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC options = Options() # Create an option object options.add_argument("--kiosk") # Browser maximization options.add_experimental_option("detach", True) # The browser doesn't close options.add_argument("--disable-gpu") options.add_experimental_option('excludeSwitches', ['enable-automation']) options.add_argument("--headless") # Browser background run options prefs = {'profile.default_content_settings.popups': 0, 'download.default_directory': ARINVOICEPATH} # Data storage address options.add_experimental_option('prefs', prefs) # self.driver = webdriver.Ie(IEDRIVERSERVER) self.driver = webdriver.Chrome(CHROMEDRIVER, options=options) # Google drives
边栏推荐
猜你喜欢
[learning notes] shortest path + spanning tree
ROS notes (08) - definition and use of service data
ROS 笔记(08)— 服务数据的定义与使用
Doris学习笔记之介绍、编译安装与部署
微内核Zephyr获众多厂家支持!
Redis cluster deployment and application scenarios
In flood fighting and disaster relief, the city donated 100000 yuan of love materials to help Yingde
The maximum number of Rac open file descriptors, and the processing of hard check failure
Trigonometric transformation formula
图像翻译:UVCGAN: UNET VISION TRANSFORMER CYCLE-CONSISTENT GAN FOR UNPAIRED IMAGE-TO-IMAGE TRANSLATION
随机推荐
Airflow2.1.1 ultra detailed installation document
js运算符的优先级
B_QuRT_User_Guide(28)
Prometheus service discovery
解决npm ERR! Unexpected end of JSON input while parsing near问题
Host is not allowed to connect to this MySQL server
B_ QuRT_ User_ Guide(28)
22/02/14 study notes
Study notes 22/1/11
Redis cluster deployment and application scenarios
Oracle RAC -- understanding of VIP
11grac turn off archive log
How to use redis to solve concurrency problems
redis02——一篇终结redis的五种数据类型操作命令(可学习、复习、面试、收藏备用)
LeetCode之三步问题
ROS 笔记(08)— 服务数据的定义与使用
Introduction to Devops Basics
PC端隐藏滚动条
【学习笔记】线性基
Ambari (V) ---ambari integrated Azkaban (valid for personal test)