DevToolsActivePort文件不支持;selenium不存在

。
订阅者
271
文章
0
粉丝
测试交流评论166字数 177阅读0分35秒阅读模式
摘要我试图在linux虚拟机上执行python selenium测试。我使用webdriver manager自动选择右边缘驱动程序。然而,我的错误是这样的: 例外是。。。

我试图在linux虚拟机上执行python selenium测试。我使用webdriver manager自动选择右边缘驱动程序。然而,我的错误是这样的:
发生异常:WebDriverException
消息:未知错误:Microsoft Edge无法启动:异常退出。
(未知错误:DevToolsActivePort文件不存在)
(从msedge location/usr/bin/microsoft edge开始的进程不再运行,因此msedge驱动程序假设msedge已崩溃。)

这个错误背后的原因是什么?我怎样才能修好它?谢谢你的帮助!文章源自玩技e族-https://www.playezu.com/204830.html

代码:文章源自玩技e族-https://www.playezu.com/204830.html

import os
import time
from selenium import webdriver
from selenium.webdriver.edge.service import Service as EdgeService
from webdriver_manager.microsoft import EdgeChromiumDriverManager
driver = webdriver.Edge(service=EdgeService(EdgeChromiumDriverManager().install()))
base_url = "http://localhost:5000/"
driver.get(base_url)

测试显卡功能软件文章源自玩技e族-https://www.playezu.com/204830.html 文章源自玩技e族-https://www.playezu.com/204830.html

 
匿名

发表评论

匿名网友
:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:
确定

拖动滑块以完成验证