当前位置:网站首页>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 边栏推荐
- In flood fighting and disaster relief, the city donated 100000 yuan of love materials to help Yingde
- Installing MySQL under Linux
- Is it reliable for the top ten securities companies to register and open accounts? Is it safe?
- SQL master-slave replication setup
- Buffer pool in MySQL
- 微内核Zephyr获众多厂家支持!
- Explanation and application of instr() function in Oracle
- Estimation of SQL execution cost by MySQL query optimizer
- [learning notes] linear basis
- JS rounding tips
猜你喜欢

Prometheus monitoring (I)

微内核Zephyr获众多厂家支持!

NLP sequence can completely simulate human brain intelligence

设置网页的标题部分的图标

图像翻译/Transformer:ITTR: Unpaired Image-to-Image Translation with Transformers用Transfor进行非配对图像对图像的转换

探讨gis三维系统在矿山行业中的应用

Trigonometric transformation formula

The micro kernel zephyr is supported by many manufacturers!

Software testing and quality final review

SQL master-slave replication setup
随机推荐
【学习笔记】搜索
Ambari (V) ---ambari integrated Azkaban (valid for personal test)
Solve NPM err! Unexpected end of JSON input while parsing near
ROS 笔记(09)— 参数的查询和设置
After installing NRM, the internal/validators js:124 throw new ERR_ INVALID_ ARG_ TYPE(name, ‘string‘, value)
11grac turn off archive log
你了解TCP协议吗(二)?
SQL Master slave Replication Build
Leetcode摆动序列系列
Redis cluster deployment and application scenarios
【学习笔记】差分约束
Is it reliable to open an account by digging money? Is it safe?
Introduction to Devops Basics
How to insert a single quotation mark into a table as a data type in Oracle pl/sql
nlp序列完全可以模拟人脑智能
22/02/15 study notes
Leetcode swing series
App automated testing appium tutorial 2 - ADB command
[shangpinhui] project notes
Configuring MySQL multi instance master-slave synchronization for Linux