优化驱动使用逻辑 @xrilang
This commit is contained in:
parent
e18d62d6bb
commit
cd16467312
@ -65,6 +65,7 @@ sio.connect("ws://"+host+":"+port)
|
||||
# WebDriver初始化
|
||||
def init_webdriver(driver_type):
|
||||
# 先检查是否配置了自行安装的驱动
|
||||
|
||||
try:
|
||||
if driver_type.lower() == "edge" and driver_path_edge: # 只有在Edge类型且路径已知的情况下才尝试使用已存在的驱动
|
||||
edge_options = Options() # 创建Edge的Options实例
|
||||
|
Loading…
Reference in New Issue
Block a user