我试图在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