当前位置:网站首页>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 边栏推荐
- 【学习笔记】搜索
- Resolution of Rac grid failure to start after server restart
- B_ QuRT_ User_ Guide(27)
- 新唐NUC980使用记录:自制开发板(基于NUC980DK61YC)
- B_ QuRT_ User_ Guide(30)
- Ambari (V) ---ambari integrated Azkaban (valid for personal test)
- App automated testing appium tutorial 2 - ADB command
- Unity 获取当前物体正前方,一定角度、距离的坐标点
- About ASM disk space full, clean up ASM disk
- Ambari (IX) --- use expect to realize no interaction in ambri server setup phase (valid for personal test)
猜你喜欢

Usage record of Xintang nuc980: self made development board (based on nuc980dk61yc)

Redis02 -- an operation command of five data types for ending redis (it can be learned, reviewed, interviewed and collected for backup)

Ambari (VII) --- ambari integrated hue4.2 document (valid for personal test)

sql主從複制搭建

Two tips for block level elements

Redis persistence problem and final solution

Software testing and quality final review

Host is not allowed to connect to this MySQL server

Do you know TCP protocol (2)?

SLAM中常用的雅克比矩阵J
随机推荐
Unity 获取当前物体正前方,一定角度、距离的坐标点
MySQL two table connection principle (understand join buf)
你了解TCP協議嗎(二)?
How to use redis to solve concurrency problems
Software testing and quality final review
About RAC modifying scan IP
On the solution of insufficient swap partition
Study notes 22/1/18
Resolution of Rac grid failure to start after server restart
js取整的小技巧
Connaissez - vous le protocole TCP (2)?
Activity隐式跳转
SQL Master slave Replication Build
How to insert a single quotation mark into a table as a data type in Oracle pl/sql
微内核Zephyr获众多厂家支持!
抗洪救灾,共克时艰,城联优品捐赠10万元爱心物资驰援英德
匿名页的反向映射
NPM clean cache
PC端隐藏滚动条
B_QuRT_User_Guide(27)